Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IUniform

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.


Table members

Methods


GetIndex()

Get the zero-based index of this uniform variable.

Integer GetIndex()

Returns
Integer The uniform's index inside the parent container.

GetName()

Get the uniform's user-defined variable name. If the uniform is a predefined one, this method always returns an empty string.

String GetName()

Returns
String The uniform variable's name.

GetItem()

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()

Returns
Murl.IEnums.UniformItem The uniform item.

GetType()

Get the uniform's data type.

Murl.IEnums.UniformType GetType()

Returns
Murl.IEnums.UniformType The uniform's data type.

GetByteOffset()

Get the uniform's byte offset. This method returns the uniform's byte offset relative to the beginning of its container.

Integer GetByteOffset()

Returns
Integer The uniform's byte offset within a constant array.