Public Member Functions | List of all members
UniformInstance Class Referenceabstract

#include <uniforminstance.h>

Public Member Functions

virtual ~UniformInstance ()=default
virtual const ShaderVariableDeclarationgetDeclaration () const =0


Instantiated version of a nap::Uniform. Every uniform 'resource' has an associative 'instance', ie: nap::UniformValue -> nap::UniformValueInstance. An instance can be updated / inspected at run-time and is associated with a declaration.

Inheritance diagram for UniformInstance:

Constructor & Destructor Documentation

◆ ~UniformInstance()

virtual ~UniformInstance ( )

Member Function Documentation

◆ getDeclaration()

virtual const ShaderVariableDeclaration& getDeclaration ( ) const
pure virtual

Required virtual, needs to be implemented in derived classes

the declaration associated with this uniform instance

Implemented in UniformValueArrayInstance, UniformValueInstance, UniformStructArrayInstance, and UniformStructInstance.