Represents a single vertex structure used in Vulkan rendering.
Подробнее...
#include <VulkanGraphicsPipeline.h>
|
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()
Constructs a Vertex from a MeshVertex structure.
- Аргументы
-
meshVertex | The 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.
Объявления и описания членов структуры находятся в файле: