Vertex attribute description. More...
#include <GLTFLoader.hpp>
Public Attributes | |
const char * | Name = nullptr |
Attribute name ("POSITION" , "NORMAL" , "TEXCOORD_0" , "TEXCOORD_1" , "JOINTS_0" , "WEIGHTS_0" , etc.). | |
Uint8 | BufferId = 0 |
Index of the vertex buffer that stores this attribute. | |
VALUE_TYPE | ValueType = VT_UNDEFINED |
The type of the attribute's components. | |
Uint8 | NumComponents = 0 |
The number of components in the attribute. | |
Uint32 | RelativeOffset = ~0U |
const void * | pDefaultValue = nullptr |
Default attribute value. | |
Vertex attribute description.
const void* Diligent::GLTF::VertexAttributeDesc::pDefaultValue = nullptr |
Default attribute value.
This value is used when the attribute is not present in the source GLTF model. The pointer must point to a value of the appropriate type (e.g. float3 for VT_FLOAT32, 3). If this value is null, the attribute will be initialized with zeros.
Uint32 Diligent::GLTF::VertexAttributeDesc::RelativeOffset = ~0U |
Relative offset, in bytes, from the start of the vertex data to the start of the attribute. If this value is set to 0xFFFFFFFF
(the default value), the offset will be computed automatically by placing the attribute right after the previous one.