diff --git a/src/vk.cpp b/src/vk.cpp index 691e140..2cea902 100644 --- a/src/vk.cpp +++ b/src/vk.cpp @@ -579,7 +579,7 @@ void Vulkan::createGraphicPipeline() bindingDescription.inputRate = VK_VERTEX_INPUT_RATE_VERTEX; // Описание атрибута - std::vector 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(attributeDescriptions.size()); + vertexInputInfo.vertexAttributeDescriptionCount = sizeof(attributeDescriptions); vertexInputInfo.pVertexBindingDescriptions = &bindingDescription; - vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions.data(); + vertexInputInfo.pVertexAttributeDescriptions = attributeDescriptions; // Входной сборщик VkPipelineInputAssemblyStateCreateInfo inputAssembly{};