LampyEngine
 
Загрузка...
Поиск...
Не найдено
Структура Vertex

Represents a single vertex structure used in Vulkan rendering. Подробнее...

#include <VulkanGraphicsPipeline.h>

Открытые члены

 Vertex ()
 Default constructor initializes the vertex with zero values.
 
 Vertex (const MeshVertex &meshVertex)
 Constructs a Vertex from a MeshVertex structure.
 

Открытые статические члены

static VkVertexInputBindingDescription getBindingDescription ()
 Returns the Vulkan binding description for a vertex buffer.
 
static std::array< VkVertexInputAttributeDescription, 3 > getAttributeDescriptions ()
 Returns the Vulkan attribute descriptions for a vertex buffer.
 

Открытые атрибуты

glm::vec3 pos
 Vertex position (x, y, z).
 
glm::vec2 uv
 Texture coordinates (u, v).
 
glm::vec3 normal
 Normal vector (x, y, z).
 

Подробное описание

Represents a single vertex structure used in Vulkan rendering.

Конструктор(ы)

◆ Vertex()

Vertex::Vertex ( const MeshVertex & meshVertex)
inline

Constructs a Vertex from a MeshVertex structure.

Аргументы
meshVertexThe mesh vertex data to copy from.

Методы

◆ getAttributeDescriptions()

static std::array< VkVertexInputAttributeDescription, 3 > Vertex::getAttributeDescriptions ( )
inlinestatic

Returns the Vulkan attribute descriptions for a vertex buffer.

Возвращает
An array of VkVertexInputAttributeDescription.

◆ getBindingDescription()

static VkVertexInputBindingDescription Vertex::getBindingDescription ( )
inlinestatic

Returns the Vulkan binding description for a vertex buffer.

Возвращает
VkVertexInputBindingDescription structure.

Объявления и описания членов структуры находятся в файле: