Cogs.Core
|
Property value for texture samplers. More...
#include <MaterialProperty.h>
Public Attributes | |
TextureWithSampler | texture |
![]() | |
PropertyName | name |
Name of the property, used to reference named uniforms of constant buffer members in shaders. | |
VariableKey | key = NoProperty |
Key of the property, used to index into the property collection the property will be placed into. | |
ConstantBufferKey | buffer = NoProperty |
Key to the buffer the property value is stored in. | |
MaterialPropertyDescriptor | descriptor |
Property descriptor. | |
MaterialDataType | type = MaterialDataType::Unknown |
Type of data held by property. | |
glm::mat4 | storage |
Storage for property data. Really a union. | |
bool | dirty = false |
If the property is dirty. | |
bool | isPerInstance = true |
If the property is defined per instance or per material. | |
bool | isArray = false |
uint32_t | arraySize = 0 |
MaterialPropertyFlags | flags = MaterialPropertyFlags::None |
Additional Inherited Members | |
![]() | |
template<typename T > | |
void | setDefault (T &t) |
float | defaultFloat () const |
int | defaultInt () const |
uint32_t | defaultUInt () const |
bool | defaultBool () const |
glm::vec2 | defaultVec2 () const |
glm::vec3 | defaultVec3 () const |
glm::vec4 | defaultVec4 () const |
Property value for texture samplers.
Definition at line 122 of file MaterialProperty.h.
TextureWithSampler Cogs::Core::TextureProperty::texture |
Definition at line 124 of file MaterialProperty.h.