Render3D.SetProgramConstantFloat2

This page contains reference documentation for the SetProgramConstantFloat2 function. This function is used to store two floating point values inside a program constant with at least two components before execution. The values are then available to the program during execution.

Prototype

int SetProgramConstantFloat2( int ProgramHandle, int ConstantIndex, double Value1, double Value2 )

Parameters

Function parameters are as follows:

  • ProgramHandle: Reserved.
  • ConstantIndex: The index of the constant whose value is to be set. This value is typically retrieved using the GetProgramConstantIndex function.
  • Value1: A value to store in the first component of the constant.
  • Value2: A value to store in the second component of the constant.