84 return vertexFormat.
size;
92 return vertexFormat.
hash;
#define COGSRENDERING_DLL_API
Definition: Base.h:20
size_t hash(const VertexElement &element, size_t hashValue=Cogs::hash())
Calculate a hash value for the specified vertex element.
Definition: VertexFormat.h:100
uint32_t COGSRENDERING_DLL_API getSize(const Cogs::VertexFormat &vertexFormat)
Definition: VertexFormat.h:82
StringView COGSRENDERING_DLL_API getElementSemanticName(ElementSemantic semantic)
Definition: VertexFormat.cpp:106
InputType
Input types for the input assembler.
Definition: VertexFormat.h:29
@ InstanceData
Per instance data.
@ VertexData
Per vertex data.
Format
Definition: DataFormat.h:22
ElementSemantic
Element semantics used to map data to the shader stage.
Definition: VertexFormat.h:14
@ Position
Position semantic.
@ Tangent
Tangent semantic.
@ InstanceMatrix
Instance matrix semantic.
@ InstanceVector
Instance vector semantic.
@ TextureCoordinate
Texture coordinate semantic.
size_t COGSRENDERING_DLL_API getHash(const Cogs::VertexFormat &vertexFormat)
Definition: VertexFormat.h:90
Handle template class used to provide opaque, non-converting handles.
Definition: Common.h:22
Definition: VertexFormat.h:48
InputType inputType
Input type of the element, vertex or instance data.
Definition: VertexFormat.h:52
uint16_t instanceStep
Instance step factor.
Definition: VertexFormat.h:53
ElementSemantic semantic
Semantic mapping of the element (position, normal, etc...).
Definition: VertexFormat.h:50
uint16_t semanticIndex
Index for the semantic mapping.
Definition: VertexFormat.h:51
DataFormat format
Format of the element.
Definition: VertexFormat.h:49
Vertex element structure used to describe a single data element in a vertex for the input assembler.
Definition: VertexFormat.h:38
InputType inputType
Input type of the element, vertex or instance data.
Definition: VertexFormat.h:43
DataFormat format
Format of the element.
Definition: VertexFormat.h:40
uint16_t offset
Offset in bytes from the vertex position in memory.
Definition: VertexFormat.h:39
uint16_t semanticIndex
Index for the semantic mapping.
Definition: VertexFormat.h:42
ElementSemantic semantic
Semantic mapping of the element (position, normal, etc...).
Definition: VertexFormat.h:41
uint16_t instanceStep
Instance step factor.
Definition: VertexFormat.h:44