molecular
Public Types | Public Member Functions | Public Attributes | List of all members
molecular::util::VertexAttributeInfo Struct Reference

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
 

Detailed Description

Information about vertex attribute data in a buffer.

Member Enumeration Documentation

anonymous enum : std::uint32_t
Enumerator
kPosition 
kNormal 
kTextureCoords 
kVertexPrt0 
kVertexPrt1 
kVertexPrt2 
kSkinWeights 
kSkinJoints 
kUnknown 
Enumerator
kFloat 
kInt8 
kUInt8 
kInt16 
kUInt16 
kInt32 
kUInt32 
kHalf 

Constructor & Destructor Documentation

molecular::util::VertexAttributeInfo::VertexAttributeInfo ( )
inline
molecular::util::VertexAttributeInfo::VertexAttributeInfo ( Type  type,
int  components,
int  offset,
int  stride,
int  buffer,
bool  normalized = true 
)
inline

Member Data Documentation

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.


The documentation for this struct was generated from the following file: