public |
Inheritance Graph
graph BT
UniformRegistry
click UniformRegistry "classRendering_1_1UniformRegistry"
Description
(internal) Collection of Uniforms. Objects of this class are internally used by Shaders to track their Uniforms and by the RenderingContext , which has one instance for managing global uniforms.
Classes
struct | Rendering::UniformRegistry::entry_t |
Public Functions
UniformRegistry() (ctor) |
|
~UniformRegistry() (dtor) |
|
void | clear() |
void | resetCounters() This forces all uniforms to be re-applied. Call this after the Shader has changed somehow. |
const Uniform & | getUniform(const Util::StringIdentifier nameId) const |
bool | isInvalid(const Util::StringIdentifier nameId) const returns true if a uniform with the given name has already been set, but the appliance failed. |
void | performGlobalSync(const UniformRegistry & globalUniforms, bool forced) Transfer all uniforms that have been changed in the globalUniforms since the last stepOfLastGlobalSync. |
void | setUniform(const Uniform & uniform, bool warnIfUnused, bool forced) |
Documentation
function
Rendering::UniformRegistry::UniformRegistry
public |
UniformRegistry( | ) |
(ctor)
Defined in Rendering/Shader/UniformRegistry.h:74
function
Rendering::UniformRegistry::~UniformRegistry
public |
~UniformRegistry( | ) |
(dtor)
Defined in Rendering/Shader/UniformRegistry.h:76
function
Rendering::UniformRegistry::clear
public |
void clear( | ) |
Defined in Rendering/Shader/UniformRegistry.h:78
function
Rendering::UniformRegistry::resetCounters
public | inline |
void resetCounters( | ) |
This forces all uniforms to be re-applied. Call this after the Shader has changed somehow.
Defined in Rendering/Shader/UniformRegistry.h:81
function
Rendering::UniformRegistry::getUniform
public | const | inline |
const Uniform & getUniform( | const Util::StringIdentifier | nameId ) const |
Defined in Rendering/Shader/UniformRegistry.h:83
function
Rendering::UniformRegistry::isInvalid
public | const | inline |
bool isInvalid( | const Util::StringIdentifier | nameId ) const |
returns true if a uniform with the given name has already been set, but the appliance failed.
Defined in Rendering/Shader/UniformRegistry.h:90
function
Rendering::UniformRegistry::performGlobalSync
public |
void performGlobalSync( | const UniformRegistry & | globalUniforms, |
bool | forced | |
) |
Transfer all uniforms that have been changed in the globalUniforms since the last stepOfLastGlobalSync.
Defined in Rendering/Shader/UniformRegistry.h:96
function
Rendering::UniformRegistry::setUniform
public |
void setUniform( | const Uniform & | uniform, |
bool | warnIfUnused, | |
bool | forced | |
) |
Defined in Rendering/Shader/UniformRegistry.h:98