Правка ошибки количества эл-тов в массиве описания атрибутов вершин

This commit is contained in:
parent 9997f2d1d3
commit a61e644b80
1 changed files with 1 additions and 1 deletions

View File

@ -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;