Urho3D
Public Member Functions | Public Attributes | List of all members
Urho3D::VertexElement Struct Reference

Vertex element description for arbitrary vertex declarations. More...

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/GraphicsAPI/GraphicsDefs.h>

Public Member Functions

 VertexElement () noexcept
 Default-construct.
 
 VertexElement (VertexElementType type, VertexElementSemantic semantic, i8 index=0, bool perInstance=false) noexcept
 Construct with type, semantic, index and whether is per-instance data.
 
bool operator== (const VertexElement &rhs) const
 Test for equality with another vertex element. Offset is intentionally not compared, as it's relevant only when an element exists within a vertex buffer.
 
bool operator!= (const VertexElement &rhs) const
 Test for inequality with another vertex element.
 

Public Attributes

VertexElementType type_
 Data type of element.
 
VertexElementSemantic semantic_
 Semantic of element.
 
i8 index_
 Semantic index of element, for example multi-texcoords.
 
bool perInstance_
 Per-instance flag.
 
i32 offset_
 Offset of element from vertex start. Filled by VertexBuffer once the vertex declaration is built.
 

Detailed Description

Vertex element description for arbitrary vertex declarations.


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