VOX
A little voxel engine
Loading...
Searching...
No Matches
BlockVertex Struct Reference

#include <CreateMeshData.hpp>

Collaboration diagram for BlockVertex:
Collaboration graph

Public Member Functions

 BlockVertex (const glm::ivec3 &pos, const uint32_t normal, const glm::ivec2 &texCoord, const uint32_t texLayer, const uint8_t ao, const uint8_t light)
 

Static Public Member Functions

static constexpr uint32_t getMaxTextureCoord ()
 
static VkVertexInputBindingDescription getBindingDescription ()
 
static std::vector< VkVertexInputAttributeDescription > getAttributeDescriptions ()
 

Public Attributes

uint64_t data [2]
 

Constructor & Destructor Documentation

◆ BlockVertex()

BlockVertex::BlockVertex ( const glm::ivec3 &  pos,
const uint32_t  normal,
const glm::ivec2 &  texCoord,
const uint32_t  texLayer,
const uint8_t  ao,
const uint8_t  light 
)
inline

Member Function Documentation

◆ getAttributeDescriptions()

static std::vector< VkVertexInputAttributeDescription > BlockVertex::getAttributeDescriptions ( )
inlinestatic

◆ getBindingDescription()

static VkVertexInputBindingDescription BlockVertex::getBindingDescription ( )
inlinestatic

◆ getMaxTextureCoord()

static constexpr uint32_t BlockVertex::getMaxTextureCoord ( )
inlinestaticconstexpr

Member Data Documentation

◆ data

uint64_t BlockVertex::data[2]

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