From a61e644b80b1ecf2270653e6fab239a11086d0f9 Mon Sep 17 00:00:00 2001 From: "re.kovalev" Date: Mon, 28 Feb 2022 21:41:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B2=D0=B0=20=D1=8D=D0=BB-=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B2=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=B5=20?= =?UTF-8?q?=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B0=D1=82?= =?UTF-8?q?=D1=80=D0=B8=D0=B1=D1=83=D1=82=D0=BE=D0=B2=20=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=88=D0=B8=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk.cpp b/src/vk.cpp index 4025ab9..e3ae92a 100644 --- a/src/vk.cpp +++ b/src/vk.cpp @@ -593,7 +593,7 @@ void Vulkan::createGraphicPipeline() attributeDescriptions[1].offset = offsetof(Vertex, color); vertexInputInfo.vertexBindingDescriptionCount = 1; - vertexInputInfo.vertexAttributeDescriptionCount = sizeof(attributeDescriptions); + vertexInputInfo.vertexAttributeDescriptionCount = 2; vertexInputInfo.pVertexBindingDescriptions = &bindingDescription; vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions;