class
render::VertexData
Container class consisting of a set of vertex buffers and their declaration.
Public
Constructors
VertexData
VertexData() = default
Methods
~VertexData
~VertexData() = default
SetBuffer
Assigns a new vertex buffer to the specified index.
GetBuffer
Retrieves a vertex buffer from the specified index.
GetBuffers
Returns a list of all bound vertex buffers.
IsBufferBound
bool IsBufferBound(u32 index) const
Checks if there is a buffer at the specified index.
GetBufferCount
u32 GetBufferCount() const
Gets total number of bound buffers.
GetMaxBufferIndex
u32 GetMaxBufferIndex() const
Returns the maximum index of all bound buffers.
Fields
VertexDescription
Declaration used for the contained vertex buffers.
VertexCount
u32 VertexCount
Number of vertices to use.
Private
Methods
RecalculateMaxIndex
void RecalculateMaxIndex()
Fields
mVertexBuffers
UnorderedMap<u32, SPtr<GpuBuffer>> mVertexBuffers
mMaxBufferIdx
u32 mMaxBufferIdx