SetProgramConstantUint64Vector Data Member Function

Sets a vector of <uint64> values as a shader constant.

Prototype

int32 SetProgramConstantUint64Vector( int32 p_nHandle, int32 p_nIndex, Uint64Vector p_oData, int32 p_nDimension )

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.
<Uint64Vector>p_oDataA pointer to the source <Uint32Vector> object.
int32p_nDimensionThe value 2, 3, or 4 depending on the dimensions of the constant. For example, a <Uint64Vector> object always has four components, but using 2 here allows you to set a u64vec2 shader constant. (if your GPU supports 64-bit via https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_gpu_shader_int64.txt or similar.).

Examples

Copy Text To Clipboard

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