MeshData Struct
Raw mesh data container used by mesh registries and render backends. More...
Declaration
Public Constructors Index
| MeshData (std::vector< Vertex > vertices, std::vector< unsigned int > indices, PrimitiveType primitiveType) | |
|
Constructs mesh data from owned vertex/index vectors. More... | |
| MeshData (std::span< const Vertex > vertices, std::span< const unsigned int > indices, PrimitiveType primitiveType) | |
|
Constructs mesh data by copying from non-owning spans. More... | |
Public Member Attributes Index
| std::vector< Vertex > | vertices |
|
Vertex buffer payload. More... | |
| std::vector< unsigned int > | indices |
|
Index buffer payload. More... | |
| PrimitiveType | primitiveType |
|
Primitive topology used to interpret the index buffer. More... | |
Description
Raw mesh data container used by mesh registries and render backends.
Definition at line 22 of file MeshData.ixx.
Public Constructors
MeshData()
| inline explicit |
Constructs mesh data from owned vertex/index vectors.
- Parameters
-
vertices Vertex buffer payload.
indices Index buffer payload.
primitiveType Primitive topology for draw interpretation.
Definition at line 45 of file MeshData.ixx.
MeshData()
| inline explicit |
Constructs mesh data by copying from non-owning spans.
- Parameters
-
vertices Vertex buffer view.
indices Index buffer view.
primitiveType Primitive topology for draw interpretation.
Definition at line 54 of file MeshData.ixx.
Public Member Attributes
indices
|
Index buffer payload.
Definition at line 32 of file MeshData.ixx.
primitiveType
|
Primitive topology used to interpret the index buffer.
Definition at line 37 of file MeshData.ixx.
vertices
|
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.