VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::VertexFormat Class Reference

#include <platform/graphics/vertexFormat.h>

Public Member Functions

bool isInstancing () const
bool isInterleaved () const
uint32_t renderingHash () const
const std::string & renderingHashString () const
int size () const
 VertexFormat (int size, bool interleaved=true, bool instancing=false)
int verticesByteSize () const

Detailed Description

A vertex format is a descriptor that defines the layout of vertex data inside a VertexBuffer

Definition at line 63 of file vertexFormat.h.

Constructor & Destructor Documentation

◆ VertexFormat()

visutwin::canvas::VertexFormat::VertexFormat ( int size,
bool interleaved = true,
bool instancing = false )

Definition at line 12 of file vertexFormat.cpp.

References size().

Member Function Documentation

◆ isInstancing()

bool visutwin::canvas::VertexFormat::isInstancing ( ) const
inline

Definition at line 79 of file vertexFormat.h.

◆ isInterleaved()

bool visutwin::canvas::VertexFormat::isInterleaved ( ) const
inline

Definition at line 77 of file vertexFormat.h.

◆ renderingHash()

uint32_t visutwin::canvas::VertexFormat::renderingHash ( ) const
inline

Definition at line 73 of file vertexFormat.h.

◆ renderingHashString()

const std::string & visutwin::canvas::VertexFormat::renderingHashString ( ) const
inline

Definition at line 75 of file vertexFormat.h.

◆ size()

int visutwin::canvas::VertexFormat::size ( ) const
inline

Definition at line 68 of file vertexFormat.h.

Referenced by VertexFormat().

◆ verticesByteSize()

int visutwin::canvas::VertexFormat::verticesByteSize ( ) const
inline

Definition at line 70 of file vertexFormat.h.


The documentation for this class was generated from the following files: