![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IUniform interface.
This interface represents a generic shader uniform variable object that exposes properties such as predefined item, variable name or data type. It can also be used to set a uniform variable's value by parsing a given string.
Get the zero-based index of this uniform variable.
Integer GetIndex()
Get the uniform's user-defined variable name. If the uniform is a predefined one, this method always returns an empty string.
String GetName()
Get the uniform's predefined item. If the uniform is a user-defined one, this method always returns IEnums::UNIFORM_ITEM_CUSTOM.
Murl.IEnums.UniformItem GetItem()
Get the uniform's data type.
Murl.IEnums.UniformType GetType()
Get the uniform's byte offset. This method returns the uniform's byte offset relative to the beginning of its container.
Integer GetByteOffset()