Replaced vectors with fixed sized arrays
This commit is contained in:
parent
401369f716
commit
82152a4382
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue