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

Determines how a single VertexElement is laid out on the vertex buffer. More...

#include <CeresEngine/Mesh/VertexDeclaration.hpp>

Public Member Functions

String toString () const noexcept
 Gets a string representation of the VertexBufferLayoutElement.
 
void toString (std::ostream &stream) const noexcept
 Writes a string representation of the VertexBufferLayoutElement to the given stream.
 

Public Attributes

VertexElement element
 The vertex element description.
 
UInt64 offset = 0
 The offset to where this vertex element starts.
 
UInt64 stride = ~0u
 The stride, the amount of bytes to skip to reach the next vertex data.
 

Friends

std::ostream & operator<< (std::ostream &stream, const VertexBufferLayoutElement &object)
 
bool operator== (const VertexBufferLayoutElement &lhs, const VertexBufferLayoutElement &rhs) noexcept
 
bool operator!= (const VertexBufferLayoutElement &lhs, const VertexBufferLayoutElement &rhs) noexcept
 

Detailed Description

Determines how a single VertexElement is laid out on the vertex buffer.

Member Function Documentation

◆ toString() [1/2]

String CeresEngine::VertexBufferLayoutElement::toString ( ) const
noexcept

Gets a string representation of the VertexBufferLayoutElement.

◆ toString() [2/2]

void CeresEngine::VertexBufferLayoutElement::toString ( std::ostream &  stream) const
noexcept

Writes a string representation of the VertexBufferLayoutElement to the given stream.

Friends And Related Symbol Documentation

◆ operator!=

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const VertexBufferLayoutElement object 
)
friend

◆ operator==

Member Data Documentation

◆ element

VertexElement CeresEngine::VertexBufferLayoutElement::element

The vertex element description.

Describes type, size and semantic of a vertex element.

◆ offset

UInt64 CeresEngine::VertexBufferLayoutElement::offset = 0

The offset to where this vertex element starts.

◆ stride

UInt64 CeresEngine::VertexBufferLayoutElement::stride = ~0u

The stride, the amount of bytes to skip to reach the next vertex data.

If 0, the declaration size is used instead.


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