class
VertexDescription
Contains information about layout of vertices in a buffer.
Public
Constructors
VertexDescription
Methods
GetId
Returns a unique identifier of this combination of vertex elements.
All vertex descriptions sharing the same set of vertex elements will have the same ID.
HasElement
Query if we have vertex data for the specified semantic.
GetElementSize
Returns the size in bytes of the vertex element with the specified semantic.
GetElementOffsetFromStream
Returns offset of the vertex from start of the stream in bytes.
GetVertexStride
Gets vertex stride in bytes (offset from one vertex to another) in the specified stream.
GetVertexStride
Gets vertex stride in bytes (offset from one vertex to another) in all the streams.
GetStreamOffset
Gets offset in bytes from the start of the internal buffer to the start of the specified stream.
GetElementCount
Returns the number of vertex elements.
GetElement
Returns the vertex element at the specified index.
GetElement
Returns the vertex element with the specified semantic.
GetElements
Returns all the elements of the definition.
staticIsCompatibleWithShaderInputs
staticGetMissingElementsForShaderInput
Returns a list of vertex elements that the provided shader expects as inputs, but aren't provided in the list of vertex buffer elements.
staticGetRttiStatic
Operators
operator==
operator!=
Private
Constructors
VertexDescription
Methods
GetLargestStreamIndex
Returns the largest stream index of all the stored vertex elements.
HasStream
Checks if any of the vertex elements use the specified stream index.
CalculateOffsets
Calculates offsets of each vertex element, at which they will be stored in the vertex buffer.