From c36ded588b7a149b4de07f2d284704843234e179 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 20 Dec 2021 06:57:49 +0100 Subject: [PATCH] restore vectex layout in main pipeline --- src/vkvg_device_internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vkvg_device_internal.c b/src/vkvg_device_internal.c index 5690050..5f55970 100644 --- a/src/vkvg_device_internal.c +++ b/src/vkvg_device_internal.c @@ -279,13 +279,13 @@ void _setupPipelines(VkvgDevice dev) VkVertexInputAttributeDescription vertexInputAttributs[3] = { {0, 0, VK_FORMAT_R32G32_SFLOAT, 0}, {1, 0, VK_FORMAT_R8G8B8A8_UNORM, 8}, - //{2, 0, VK_FORMAT_R32G32B32_SFLOAT, 12} + {2, 0, VK_FORMAT_R32G32B32_SFLOAT, 12} }; VkPipelineVertexInputStateCreateInfo vertexInputState = { .sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO, .vertexBindingDescriptionCount = 1, .pVertexBindingDescriptions = &vertexInputBinding, - .vertexAttributeDescriptionCount = 2, + .vertexAttributeDescriptionCount = 3, .pVertexAttributeDescriptions = vertexInputAttributs }; #ifdef VKVG_WIRED_DEBUG VkShaderModule modVert, modFrag, modFragWired; -- 2.47.3