Cogs.Core
|
Public Member Functions | |
COGSCORE_DLL_API ConstantBufferKey | addBuffer (const PropertyName &name, bool isPerInstance=true) |
void | finalizeBuffer (Context *context, ConstantBufferKey bufferKey) |
template<typename T > | |
VariableKey | addVariable (ConstantBufferKey bufferKey, MaterialPropertyFlags flags, const StringView &name, T defaultValue, MaterialDataType type, bool isPerInstance=true, size_t dimension=static_cast< size_t >(-1)) |
template<typename T > | |
void | setProperty (const VariableKey key, T value) |
VariableKey | getPropertyKey (const StringView &name) const |
Public Attributes | |
std::vector< MaterialPropertyBuffer > | buffers |
Constant buffer instances. | |
std::vector< MaterialProperty > | variables |
Individual variables from all buffer instances. | |
uint16_t | buffersGeneration = 0 |
If the constant buffer bindings need updates. | |
Definition at line 14 of file ConstantBuffers.h.
Cogs::Core::ConstantBufferKey Cogs::Core::ConstantBuffers::addBuffer | ( | const PropertyName & | name, |
bool | isPerInstance = true |
||
) |
Definition at line 40 of file Material.cpp.
|
inline |
Definition at line 21 of file ConstantBuffers.h.
|
inline |
Definition at line 18 of file ConstantBuffers.h.
|
inline |
Definition at line 79 of file ConstantBuffers.h.
|
inline |
Definition at line 68 of file ConstantBuffers.h.
std::vector<MaterialPropertyBuffer> Cogs::Core::ConstantBuffers::buffers |
Constant buffer instances.
Definition at line 91 of file ConstantBuffers.h.
Referenced by Cogs::Core::MaterialInstance::setupInstance().
uint16_t Cogs::Core::ConstantBuffers::buffersGeneration = 0 |
If the constant buffer bindings need updates.
Definition at line 97 of file ConstantBuffers.h.
Referenced by Cogs::Core::RenderMaterialInstance::checkReady().
std::vector<MaterialProperty> Cogs::Core::ConstantBuffers::variables |
Individual variables from all buffer instances.
Definition at line 94 of file ConstantBuffers.h.
Referenced by Cogs::Core::MaterialInstance::cloneMatchingProperties().