diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp index 7555c03a..eb455887 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp @@ -1003,15 +1003,14 @@ bool PipelineCompiler::Compile(bool forceCompile, bool isRenderThread, bool show VkPipelineCreationFeedbackCreateInfoEXT creationFeedbackInfo; VkPipelineCreationFeedbackEXT creationFeedback; - std::vector creationStageFeedback(0); + boost::container::static_vector creationStageFeedback; if (vkRenderer->m_featureControl.deviceExtensions.pipeline_feedback) { creationFeedback = {}; creationFeedback.flags = VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT_EXT; - creationStageFeedback.reserve(pipelineInfo.stageCount); for (uint32_t i = 0; i < pipelineInfo.stageCount; ++i) - creationStageFeedback.data()[i] = { VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT_EXT, 0 }; + creationStageFeedback.push_back({VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT_EXT, 0}); creationFeedbackInfo = {}; creationFeedbackInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT;