From: Jean-Philippe Bruyère Date: Mon, 20 Dec 2021 05:57:49 +0000 (+0100) Subject: restore vectex layout in main pipeline X-Git-Tag: v0.2.0~9 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=c36ded588b7a149b4de07f2d284704843234e179;p=jp%2Fvkvg.git restore vectex layout in main pipeline --- 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;