vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::Model::Vertex Struct Reference

#include <Model.hpp>

+ Collaboration diagram for ven::Model::Vertex:

Public Member Functions

bool operator== (const Vertex &other) const
 

Static Public Member Functions

static std::vector< VkVertexInputBindingDescription > getBindingDescriptions ()
 
static std::vector< VkVertexInputAttributeDescription > getAttributeDescriptions ()
 

Public Attributes

glm::vec3 position {}
 
glm::vec3 color {}
 
glm::vec3 normal {}
 
glm::vec2 uv {}
 

Detailed Description

Definition at line 33 of file Model.hpp.

Member Function Documentation

◆ getAttributeDescriptions()

std::vector< VkVertexInputAttributeDescription > ven::Model::Vertex::getAttributeDescriptions ( )
static

Definition at line 93 of file model.cpp.

Referenced by ven::Shaders::defaultPipelineConfigInfo().

+ Here is the caller graph for this function:

◆ getBindingDescriptions()

std::vector< VkVertexInputBindingDescription > ven::Model::Vertex::getBindingDescriptions ( )
static

Definition at line 84 of file model.cpp.

Referenced by ven::Shaders::defaultPipelineConfigInfo().

+ Here is the caller graph for this function:

◆ operator==()

bool ven::Model::Vertex::operator== ( const Vertex & other) const
inline

Definition at line 42 of file Model.hpp.

References color, normal, position, and uv.

Member Data Documentation

◆ color

glm::vec3 ven::Model::Vertex::color {}

Definition at line 35 of file Model.hpp.

Referenced by operator==().

◆ normal

glm::vec3 ven::Model::Vertex::normal {}

Definition at line 36 of file Model.hpp.

Referenced by operator==().

◆ position

glm::vec3 ven::Model::Vertex::position {}

Definition at line 34 of file Model.hpp.

Referenced by operator==(), and ven::Model::Builder::processMesh().

◆ uv

glm::vec2 ven::Model::Vertex::uv {}

Definition at line 37 of file Model.hpp.

Referenced by operator==().


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