Заменил вектор на массив

This commit is contained in:
parent 1aee70ecd8
commit 7dfc77b5dc
1 changed files with 3 additions and 3 deletions

View File

@ -579,7 +579,7 @@ void Vulkan::createGraphicPipeline()
bindingDescription.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
// Описание атрибута
std::vector<VkVertexInputAttributeDescription> attributeDescriptions(2);
VkVertexInputAttributeDescription attributeDescriptions[2];
attributeDescriptions[0].binding = 0;
attributeDescriptions[0].location = 0;
@ -592,9 +592,9 @@ void Vulkan::createGraphicPipeline()
attributeDescriptions[1].offset = offsetof(Vertex, color);
vertexInputInfo.vertexBindingDescriptionCount = 1;
vertexInputInfo.vertexAttributeDescriptionCount = static_cast<uint32_t>(attributeDescriptions.size());
vertexInputInfo.vertexAttributeDescriptionCount = sizeof(attributeDescriptions);
vertexInputInfo.pVertexBindingDescriptions = &bindingDescription;
vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions.data();
vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions;
// Входной сборщик
VkPipelineInputAssemblyStateCreateInfo inputAssembly{};