Replaced vectors with fixed sized arrays

This commit is contained in:
saschawillems 2016-12-15 18:43:16 +01:00
parent 401369f716
commit 82152a4382

View file

@ -800,11 +800,11 @@ public:
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer]; submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
// Wait on present and compute semaphores // Wait on present and compute semaphores
std::vector<VkPipelineStageFlags> stageFlags = { std::array<VkPipelineStageFlags,2> stageFlags = {
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
}; };
std::vector<VkSemaphore> waitSemaphores = { std::array<VkSemaphore,2> waitSemaphores = {
semaphores.presentComplete, // Wait for presentation to finished semaphores.presentComplete, // Wait for presentation to finished
compute.semaphore // Wait for compute to finish compute.semaphore // Wait for compute to finish
}; };