|
CeresEngine 0.2.0
A game development framework
|
A vertex attribute represents a pair of points that can be stored inside a vertex buffer. More...
#include <CeresEngine/RenderAPI/GPUVertexFormat.hpp>
Static Public Member Functions | |
| template<typename Processor > | |
| static constexpr void | reflect (Processor &&RTTI) |
| Executes the given processor for every field of the struct. | |
Public Attributes | |
| VertexElement | element |
| The vertex element that this vertex attribute represents. | |
| UInt32 | offset = 0 |
| The attribute offset inside the vertex. | |
Friends | |
| bool | operator== (const GPUVertexAttribute &lhs, const GPUVertexAttribute &rhs) |
Compares two VertexAttribute instances for equality. | |
| bool | operator!= (const GPUVertexAttribute &lhs, const GPUVertexAttribute &rhs) |
Compares two VertexAttribute instances for inequality. | |
A vertex attribute represents a pair of points that can be stored inside a vertex buffer.
|
inlinestaticconstexpr |
Executes the given processor for every field of the struct.
| RTTI | The processor to be ran for every field. |
|
friend |
Compares two VertexAttribute instances for inequality.
| lhs | The left-handside operand |
| rhs | The right-handside operand |
true if any members of lhs is not equal equal to rhs
|
friend |
Compares two VertexAttribute instances for equality.
| lhs | The left-handside operand |
| rhs | The right-handside operand |
true if all members of lhs are equal to rhs | VertexElement CeresEngine::GPUVertexAttribute::element |
The vertex element that this vertex attribute represents.
| UInt32 CeresEngine::GPUVertexAttribute::offset = 0 |
The attribute offset inside the vertex.
In most cases, this is the sum of all sizes (or strides) of all attributes preceding this in the VertexAttribute.