Sets an array of vectors of <int64> values as a shader constant.
int32 SetProgramConstantInt64VectorArray( int32 p_nHandle, int32 p_nIndex, Int64VectorArray p_oData, int32 p_nDimension, 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. |
<Int64VectorArray> | p_oData | A pointer to the source <Int64VectorArray> object. |
int32 | p_nDimension | The value 2, 3, or 4 depending on the dimensions of the constant. For example, a <Int64Vector> object always has four components, but using 2 here allows you to set an array of i64vec2 shader constants (if your GPU supports 64-bit via https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_gpu_shader_int64.txt or similar.). |
int32 | p_nCount | The number of items to copy, which must be greater than zero and less than or equal to the array count. |
None published. Please look for an example in the Scenome Scripting Language code base.