vengine  0.1.0
3D graphics engine made with Vulkan
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 20 of file Model.hpp.

Member Function Documentation

◆ getAttributeDescriptions()

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

Definition at line 108 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 99 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 29 of file Model.hpp.

References color, normal, position, and uv.

Member Data Documentation

◆ color

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

Definition at line 22 of file Model.hpp.

Referenced by std::hash< ven::Model::Vertex >::operator()(), and operator==().

◆ normal

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

Definition at line 23 of file Model.hpp.

Referenced by std::hash< ven::Model::Vertex >::operator()(), and operator==().

◆ position

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

◆ uv

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

Definition at line 24 of file Model.hpp.

Referenced by std::hash< ven::Model::Vertex >::operator()(), and operator==().


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