Cogs.Rendering
Loading...
Searching...
No Matches
Public Attributes | List of all members
Cogs::VertexElement Struct Reference

Vertex element structure used to describe a single data element in a vertex for the input assembler. More...

#include <VertexFormat.h>

Public Attributes

uint16_t offset
 Offset in bytes from the vertex position in memory.
 
DataFormat format
 Format of the element.
 
ElementSemantic semantic
 Semantic mapping of the element (position, normal, etc...).
 
uint16_t semanticIndex
 Index for the semantic mapping.
 
InputType inputType
 Input type of the element, vertex or instance data.
 
uint16_t instanceStep
 Instance step factor.
 

Detailed Description

Vertex element structure used to describe a single data element in a vertex for the input assembler.

Member Data Documentation

◆ format

DataFormat Cogs::VertexElement::format

Format of the element.

Referenced by Cogs::VertexFormats::createVertexFormat(), and Cogs::hash().

◆ inputType

InputType Cogs::VertexElement::inputType

Input type of the element, vertex or instance data.

Referenced by Cogs::hash().

◆ instanceStep

uint16_t Cogs::VertexElement::instanceStep

Instance step factor.

Referenced by Cogs::hash().

◆ offset

uint16_t Cogs::VertexElement::offset

Offset in bytes from the vertex position in memory.

Referenced by Cogs::hash().

◆ semantic

ElementSemantic Cogs::VertexElement::semantic

Semantic mapping of the element (position, normal, etc...).

Referenced by Cogs::hash().

◆ semanticIndex

uint16_t Cogs::VertexElement::semanticIndex

Index for the semantic mapping.

Used to differentiate several elements with the same semantic.

Referenced by Cogs::hash().


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