Utility structure to store vertex attributes.
More...
#include <VertexFormat.h>
|
| void | AppendAttribute (const VertexAttribute &attrib) |
| | Appends the specified vertex attribute to this vertex format.
|
| std::uint32_t | GetStride () const |
| | Returns the stride (in bytes) of the first vertex.
|
| std::uint32_t | GetStride (std::uint32_t slot) const |
| | Returns the stride (in bytes) of the first vertex with the specified buffer binding slot.
|
| void | SetStride (std::uint32_t stride) |
| | Set the stride member for all vertex attributes to the specified value.
|
| void | SetStride (std::uint32_t stride, std::uint32_t slot) |
| | Set the stride member for all vertex attributes with the specified buffer binding slot to the new value specified by stride.
|
| void | SetSlot (std::uint32_t slot) |
| | Sets the slot member for all vertex attributes to the specified value.
|
Utility structure to store vertex attributes.
- See also
- BufferDescriptor::VertexBuffer::format
◆ AppendAttribute()
Appends the specified vertex attribute to this vertex format.
- Parameters
-
| [in] | attrib | Specifies the new attribute which is appended to this vertex format. |
- See also
- VertexAttribute::offset
◆ GetStride() [1/2]
| std::uint32_t LLGL::VertexFormat::GetStride |
( |
| ) |
const |
|
inline |
◆ GetStride() [2/2]
| std::uint32_t LLGL::VertexFormat::GetStride |
( |
std::uint32_t | slot | ) |
const |
|
inline |
Returns the stride (in bytes) of the first vertex with the specified buffer binding slot.
- See also
- VertexAttribute::GetSize
◆ SetSlot()
| void LLGL::VertexFormat::SetSlot |
( |
std::uint32_t | slot | ) |
|
|
inline |
◆ SetStride() [1/2]
| void LLGL::VertexFormat::SetStride |
( |
std::uint32_t | stride | ) |
|
|
inline |
◆ SetStride() [2/2]
| void LLGL::VertexFormat::SetStride |
( |
std::uint32_t | stride, |
|
|
std::uint32_t | slot ) |
|
inline |
Set the stride member for all vertex attributes with the specified buffer binding slot to the new value specified by stride.
- See also
- VertexAttribute::stride
◆ attributes
The documentation for this struct was generated from the following file: