summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vk/graphics_pipeline.cpp')
-rw-r--r--src/vk/graphics_pipeline.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/vk/graphics_pipeline.cpp b/src/vk/graphics_pipeline.cpp
index bd0406c..de08945 100644
--- a/src/vk/graphics_pipeline.cpp
+++ b/src/vk/graphics_pipeline.cpp
@@ -533,7 +533,7 @@ load_pipeline(void *obj)
vertex_input_binding.stride = sizeof(VK::Vertex);
vertex_input_binding.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
- std::array<VkVertexInputAttributeDescription, 4> vertex_attribute{};
+ std::array<VkVertexInputAttributeDescription, 3> vertex_attribute{};
// Position.
vertex_attribute[0].location = 0;
vertex_attribute[0].binding = 0;
@@ -544,16 +544,11 @@ load_pipeline(void *obj)
vertex_attribute[1].binding = 0;
vertex_attribute[1].format = VK_FORMAT_R32G32B32_SFLOAT;
vertex_attribute[1].offset = offsetof(VK::Vertex, normal);
- // Color.
+ // Texture coordinate.
vertex_attribute[2].location = 2;
vertex_attribute[2].binding = 0;
- vertex_attribute[2].format = VK_FORMAT_R32G32B32_SFLOAT;
- vertex_attribute[2].offset = offsetof(VK::Vertex, color);
- // Texture coordinate.
- vertex_attribute[3].location = 3;
- vertex_attribute[3].binding = 0;
- vertex_attribute[3].format = VK_FORMAT_R32G32_SFLOAT;
- vertex_attribute[3].offset = offsetof(VK::Vertex, texture_coord);
+ vertex_attribute[2].format = VK_FORMAT_R32G32_SFLOAT;
+ vertex_attribute[2].offset = offsetof(VK::Vertex, texture_coord);
VkPipelineVertexInputStateCreateInfo vertex_input_info = {};
vertex_input_info.sType =