![]() |
Murl Engine API
Version 2018.3
|
The IUniform interface. More...
#include <murl_graph_i_uniform.h>
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.
Public Member Functions | |
virtual SInt32 | GetIndex () const =0 |
Get the zero-based index of this uniform variable. More... | |
virtual const String & | GetName () const =0 |
Get the uniform's user-defined variable name. More... | |
virtual IEnums::UniformItem | GetItem () const =0 |
Get the uniform's predefined item. More... | |
virtual IEnums::UniformType | GetType () const =0 |
Get the uniform's data type. More... | |
virtual UInt32 | GetByteOffset () const =0 |
Get the uniform's byte offset. More... | |
|
pure virtual |
Get the zero-based index of this uniform variable.
|
pure virtual |
Get the uniform's user-defined variable name.
If the uniform is a predefined one, this method always returns an empty string.
|
pure virtual |
Get the uniform's predefined item.
If the uniform is a user-defined one, this method always returns IEnums::UNIFORM_ITEM_CUSTOM.
|
pure virtual |
Get the uniform's data type.
|
pure virtual |
Get the uniform's byte offset.
This method returns the uniform's byte offset relative to the beginning of its container.