MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::VKVertex Struct Reference

Vertex payload consumed by MXVK model shaders. More...

#include <mxvk/include/mxvk/mxvk_model.hpp>

Public Member Functions

bool operator== (const VKVertex &other) const
 Byte-wise equality used for index compression.

Public Attributes

float normal [3] {}
float pos [3] {}
float texCoord [2] {}

Detailed Description

Vertex payload consumed by MXVK model shaders.

Definition at line 23 of file mxvk_model.hpp.

Member Function Documentation

◆ operator==()

bool mxvk::VKVertex::operator== ( const VKVertex & other) const
inline

Byte-wise equality used for index compression.

Definition at line 29 of file mxvk_model.hpp.

29 {
30 return std::memcmp(this, &other, sizeof(VKVertex)) == 0;
31 }

Member Data Documentation

◆ normal

float mxvk::VKVertex::normal[3] {}

Definition at line 26 of file mxvk_model.hpp.

26{};

◆ pos

float mxvk::VKVertex::pos[3] {}

Definition at line 24 of file mxvk_model.hpp.

24{};

◆ texCoord

float mxvk::VKVertex::texCoord[2] {}

Definition at line 25 of file mxvk_model.hpp.

25{};

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