Cogs.Core
|
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. | |
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.
DataFormat Cogs::VertexElement::format |
Format of the element.
Definition at line 40 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().
InputType Cogs::VertexElement::inputType |
Input type of the element, vertex or instance data.
Definition at line 43 of file VertexFormat.h.
Referenced by Cogs::hash(), Cogs::BuffersD3D12::loadInputLayout(), Cogs::BuffersD3D11::loadInputLayout(), Cogs::BuffersWebGPU::loadInputLayout(), and Cogs::Core::MeshStreamsLayout::logLayout().
uint16_t Cogs::VertexElement::instanceStep |
Instance step factor.
Definition at line 44 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().
uint16_t Cogs::VertexElement::offset |
Offset in bytes from the vertex position in memory.
Definition at line 39 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().
ElementSemantic Cogs::VertexElement::semantic |
Semantic mapping of the element (position, normal, etc...).
Definition at line 41 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().
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().