![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IConstantBuffer property interface.
This interface provides properties common to a class representing an array of individual uniform variables, grouped together in order to quickly activate them for a shader program.
Get the zero-based index of this constant buffer.
Integer GetIndex()
Get the constant buffer's name.
String GetName()
Get the constant buffer's predefined item. If the constant buffer is a user-defined one, this method always returns IEnums::CONSTANT_BUFFER_ITEM_CUSTOM.
Murl.IEnums.ConstantBufferItem GetItem()
Set the maximum byte size of the constant buffer.
Boolean SetMaxByteSize(Integer maxByteSize, Boolean preserveContents)
maxByteSize | The maximum capacity in bytes. |
preserveContents | If true, existing contents will be copied; but existing data beyond the new capacity is discarded. |
Get the maximum capacity of the constant buffer in bytes.
Integer GetMaxByteSize()
Set the total byte size of all variables in the constant buffer.
Boolean SetByteSize(Integer byteSize)
byteSize | The currently used total number of bytes for all variables. |
Get the total byte size of all variables in the constant buffer.
Integer GetByteSize()
Mark the constant buffer as modified.
Boolean SetConstantsModified()