SetProgramConstantInt32xN Data Member Function

Sets the value of an array shader constant.

Prototype

int32 SetProgramConstantInt32xN( int32 p_nHandle, int32 p_nIndex, Int32Array data, int32 p_nComponentDimension, int32 p_nCount )

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_nIndexThe index of the shader constant to set.
<Int32Array>dataA pointer to the source.
int32p_nComponentDimensionA value that sets the component dimension. 1 for an array of scalars, and 2, 3, or 4 for an array of vectors.
int32p_nCountThe count of the array. This value must make sense relative to the component dimension. For example, to write a scalar array as an array of 4-component vectors, this value should be the count of the array / 4.

Examples

Copy Text To Clipboard

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