Правка ошибки количества эл-тов в массиве описания атрибутов вершин
This commit is contained in:
parent
9997f2d1d3
commit
a61e644b80
|
@ -593,7 +593,7 @@ void Vulkan::createGraphicPipeline()
|
||||||
attributeDescriptions[1].offset = offsetof(Vertex, color);
|
attributeDescriptions[1].offset = offsetof(Vertex, color);
|
||||||
|
|
||||||
vertexInputInfo.vertexBindingDescriptionCount = 1;
|
vertexInputInfo.vertexBindingDescriptionCount = 1;
|
||||||
vertexInputInfo.vertexAttributeDescriptionCount = sizeof(attributeDescriptions);
|
vertexInputInfo.vertexAttributeDescriptionCount = 2;
|
||||||
vertexInputInfo.pVertexBindingDescriptions = &bindingDescription;
|
vertexInputInfo.pVertexBindingDescriptions = &bindingDescription;
|
||||||
vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions;
|
vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue