Sets the value of an array shader constant.
int32 SetProgramConstantInt32xN( int32 p_nHandle, int32 p_nIndex, Int32Array data, int32 p_nComponentDimension, int32 p_nCount )
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_nIndex | The index of the shader constant to set. |
<Int32Array> | data | A pointer to the source. |
int32 | p_nComponentDimension | A value that sets the component dimension. 1 for an array of scalars, and 2, 3, or 4 for an array of vectors. |
int32 | p_nCount | The 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. |
None published. Please look for an example in the Scenome Scripting Language code base.