Cogs.Core
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.

Definition at line 37 of file VertexFormat.h.

Member Data Documentation

◆ format

DataFormat Cogs::VertexElement::format

◆ inputType

InputType Cogs::VertexElement::inputType

◆ instanceStep

uint16_t Cogs::VertexElement::instanceStep

◆ offset

uint16_t Cogs::VertexElement::offset

◆ semantic

ElementSemantic Cogs::VertexElement::semantic

◆ semanticIndex

uint16_t Cogs::VertexElement::semanticIndex

Index for the semantic mapping.

Used to differentiate several elements with the same semantic.

Definition at line 42 of file VertexFormat.h.

Referenced by Cogs::hash(), Cogs::BuffersD3D12::loadInputLayout(), Cogs::BuffersD3D11::loadInputLayout(), Cogs::BuffersWebGPU::loadInputLayout(), Cogs::BuffersGLES30::loadVertexArrayObject(), and Cogs::Core::MeshStreamsLayout::logLayout().


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