Provides script language access to C++ objects of this type.
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | Bind | Binds the <ShaderBufferNode> to the specified rendering device information object at the specified index. Before binding, you must activate the shader buffer on the rendering device by calling the <ShaderBufferNode>::Select data interface. |
<ShaderBufferParams> | GetParams | Returns a pointer to this object's <ShaderBufferParams> object. |
uint32 | GetReportedBufferSize | Returns the size in bytes of the buffer as reported by OpenGL program reflection. If the buffer contains a variably-sized member, the reported buffer size will be as if the unsized subscript has a value of 1. This value must be used in conjunction with the ExtraBytes data member to know the total allocation required by the buffer. |
int32 | IsResident | Returns true if the shader buffer is resident on the GPU. |
int32 | Select | Activates the shader buffer on the specified rendering device. This should be done before binding the shader buffer. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
<BlockParams> | Block | Returns a pointer to the <ShaderBufferNode> object's <BlockParams> object. |
<QualifierList> | QualifierList | Returns a pointer to the <ShaderBufferNode> object's <QualifierList> object. |
uint32 | BufferSize | Gets or sets the size of the buffer. If this value is not set, the size will be set by the GL driver. Typically you use this value if the last item declared in the shader buffer is an implicitly sized array. |