SetProgramUniformBufferBinding Data Member Function

Binds a shader buffer.

Prototype

int32 SetProgramUniformBufferBinding( uint64 p_nHandle, int32 p_nProgramShaderBufferIndex, int32 p_nBindingIndex )

Parameters

Parameter Type Parameter Name Documentation
uint64p_nHandleThe handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface.
int32p_nProgramShaderBufferIndexThe shader buffer index.
int32p_nBindingIndexA binding point if applicable. For example if a buffer is declare wiht layout( binding = 1 ), then you should set the binding point to 1. Use -1 if explicit binding points are not used.

Examples

Copy Text To Clipboard

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