Stores an <int32> value inside a program constant with at least one component.
int32 SetProgramConstantInt32( int32 p_nHandle, int32 p_iIndex, int32 Value )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nHandle | The handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface.. |
int32 | p_iIndex | The index of the constant whose value is to be set. This value is typically retrieved using the GetProgramConstantIndex function. |
int32 | Value | A value to store in the first component of the constant. |
None published. Please look for an example in the Scenome Scripting Language code base.