Binds a shader buffer.
int32 SetProgramUniformBufferBinding( uint64 p_nHandle, int32 p_nProgramShaderBufferIndex, int32 p_nBindingIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
uint64 | p_nHandle | The handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface. |
int32 | p_nProgramShaderBufferIndex | The shader buffer index. |
int32 | p_nBindingIndex | A 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. |
None published. Please look for an example in the Scenome Scripting Language code base.