#include <uniforminstance.h>
Public Member Functions | |
| UniformStructInstance (const ShaderVariableStructDeclaration &declaration, const UniformCreatedCallback &uniformCreatedCallback) | |
| UniformStructInstance (const UniformStructInstance &)=delete | |
| UniformStructInstance & | operator= (const UniformStructInstance &)=delete |
| const std::vector< std::unique_ptr< UniformInstance > > & | getUniforms () const |
| UniformInstance * | findUniform (const std::string &name) |
| template<typename T > | |
| T * | findUniform (const std::string &name) |
| template<typename T > | |
| T * | getOrCreateUniform (const std::string &name) |
| virtual const ShaderVariableDeclaration & | getDeclaration () const override |
Public Member Functions inherited from UniformInstance | |
| virtual | ~UniformInstance ()=default |
Contains other uniform instances, including: values, structs and arrays. A uniform value, struct or array must be declared as part of a uniform struct.
| UniformStructInstance | ( | const ShaderVariableStructDeclaration & | declaration, |
| const UniformCreatedCallback & | uniformCreatedCallback | ||
| ) |
|
delete |
| UniformInstance* findUniform | ( | const std::string & | name | ) |
Tries to find a uniform with the given name.
| name | the name of the uniform to find. |
| T * findUniform | ( | const std::string & | name | ) |
Tries to find a uniform of a specific type with the given name.
| name | the name of the uniform to find. |
|
overridevirtual |
Implements UniformInstance.
| T * getOrCreateUniform | ( | const std::string & | name | ) |
Tries to find a uniform of a specific type with the given name, creates it if it does not exist.
| name | the name of the uniform to find or create |
| const std::vector<std::unique_ptr<UniformInstance> >& getUniforms | ( | ) | const |
|
delete |