#include <uniforminstance.h>
Public Member Functions | |
| TypedUniformValueInstance (const ShaderVariableValueDeclaration &declaration) | |
| void | setValue (const T &value) |
| const T & | getValue () const |
| void | set (const TypedUniformValue< T > &resource) |
| virtual void | push (uint8_t *uniformBuffer) const override |
Public Member Functions inherited from UniformValueInstance | |
| UniformValueInstance (const ShaderVariableValueDeclaration &declaration) | |
| virtual const ShaderVariableDeclaration & | getDeclaration () const override |
Public Member Functions inherited from UniformInstance | |
| virtual | ~UniformInstance ()=default |
Additional Inherited Members | |
Protected Attributes inherited from UniformValueInstance | |
| const ShaderVariableValueDeclaration * | mDeclaration = nullptr |
Specific type of uniform value instance, for example: float -> TypedUniformValueInstance<float>.
| TypedUniformValueInstance | ( | const ShaderVariableValueDeclaration & | declaration | ) |
| const T& getValue | ( | ) | const |
Returns the uniform value
|
overridevirtual |
Pushes the data to the 'Shader'.
| uniformBuffer | the buffer in which to copy the value. |
Implements UniformLeafInstance.
| void set | ( | const TypedUniformValue< T > & | resource | ) |
Update instance from resource, data is not pushed immediately.
| resource | the resource to copy the value from |
| void setValue | ( | const T & | value | ) |
Updates the uniform value, data is not pushed immediately.
| value | new uniform value |