molecular
|
Information about vertex attribute data in a buffer. More...
#include <BufferInfo.h>
Public Types | |
enum | : std::uint32_t { kPosition = 0xe7dccea2, kNormal = 0x11c36e42, kTextureCoords = 0x7dd0ace6, kVertexPrt0 = 0xc03b4aec, kVertexPrt1 = 0xa2739294, kVertexPrt2 = 0x9d2051c8, kSkinWeights = 0xfc228c1f, kSkinJoints = 0xe2cf8e75, kUnknown = 0 } |
enum | Type { kFloat = 1, kInt8, kUInt8, kInt16, kUInt16, kInt32, kUInt32, kHalf } |
Public Member Functions | |
VertexAttributeInfo () | |
VertexAttributeInfo (Type type, int components, int offset, int stride, int buffer, bool normalized=true) | |
Public Attributes | |
uint32_t | semantic |
Type | type |
Data type in buffer. More... | |
int | components |
Number of components per entry. More... | |
int | offset |
Offset to the first element in the buffer, measured in bytes. More... | |
int | stride |
Offset from one entry to the next. More... | |
int | buffer |
Index of the buffer containing the data. More... | |
bool | normalized |
Information about vertex attribute data in a buffer.
anonymous enum : std::uint32_t |
|
inline |
|
inline |
int molecular::util::VertexAttributeInfo::buffer |
Index of the buffer containing the data.
int molecular::util::VertexAttributeInfo::components |
Number of components per entry.
bool molecular::util::VertexAttributeInfo::normalized |
int molecular::util::VertexAttributeInfo::offset |
Offset to the first element in the buffer, measured in bytes.
uint32_t molecular::util::VertexAttributeInfo::semantic |
int molecular::util::VertexAttributeInfo::stride |
Offset from one entry to the next.
Measured in bytes. 0 means entries are tightly packed.
Type molecular::util::VertexAttributeInfo::type |
Data type in buffer.