CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUVertexAttribute Struct Referencefinal

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.
 

Detailed Description

A vertex attribute represents a pair of points that can be stored inside a vertex buffer.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUVertexAttribute::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Friends And Related Symbol Documentation

◆ operator!=

Compares two VertexAttribute instances for inequality.

Parameters
lhsThe left-handside operand
rhsThe right-handside operand
Returns
true if any members of lhs is not equal equal to rhs

◆ operator==

bool operator== ( const GPUVertexAttribute lhs,
const GPUVertexAttribute rhs 
)
friend

Compares two VertexAttribute instances for equality.

Parameters
lhsThe left-handside operand
rhsThe right-handside operand
Returns
true if all members of lhs are equal to rhs

Member Data Documentation

◆ element

VertexElement CeresEngine::GPUVertexAttribute::element

The vertex element that this vertex attribute represents.

◆ offset

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.


The documentation for this struct was generated from the following file: