84 return vertexFormat.
size;
86 inline uint32_t COGSRENDERING_DLL_API getSize(VertexFormatHandle vertexFormatHandle)
88 return getSize(*VertexFormats::getVertexFormat(vertexFormatHandle));
92 return vertexFormat.
hash;
94 inline size_t COGSRENDERING_DLL_API getHash(VertexFormatHandle vertexFormatHandle)
96 return getHash(*VertexFormats::getVertexFormat(vertexFormatHandle));
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
constexpr size_t hash() noexcept
Simple getter function that returns the initial value for fnv1a hashing.
InputType
Input types for the input assembler.
@ InstanceData
Per instance data.
@ VertexData
Per vertex data.
ElementSemantic
Element semantics used to map data to the shader stage.
@ Position
Position semantic.
@ Tangent
Tangent semantic.
@ InstanceMatrix
Instance matrix semantic.
@ InstanceVector
Instance vector semantic.
@ TextureCoordinate
Texture coordinate semantic.
InputType inputType
Input type of the element, vertex or instance data.
uint16_t instanceStep
Instance step factor.
ElementSemantic semantic
Semantic mapping of the element (position, normal, etc...).
uint16_t semanticIndex
Index for the semantic mapping.
DataFormat format
Format of the element.
Vertex element structure used to describe a single data element in a vertex for the input assembler.
InputType inputType
Input type of the element, vertex or instance data.
DataFormat format
Format of the element.
uint16_t offset
Offset in bytes from the vertex position in memory.
uint16_t semanticIndex
Index for the semantic mapping.
ElementSemantic semantic
Semantic mapping of the element (position, normal, etc...).
uint16_t instanceStep
Instance step factor.