SetProgramConstantFloat32x4 Data Member Function

Stores four floating point values inside a program constant with at least four components.

Prototype

int32 SetProgramConstantFloat32x4( int32 p_nHandle, int32 p_iIndex, double Value1, double Value2, double Value3, double Value4 )

Parameters

Parameter Type Parameter Name Documentation
int32p_nHandleThe handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface..
int32p_iIndexThe index of the constant whose value is to be set. This value is typically retrieved using the GetProgramConstantIndex function.
doubleValue1A value to store in the first component of the constant.
doubleValue2A value to store in the second component of the constant.
doubleValue3A value to store in the third component of the constant.
doubleValue4A value to store in the fourth component of the constant.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.