Skip to content

Commit bba6019

Browse files
committed
Fix uniform buffer array size
1 parent 63500fc commit bba6019

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/graphicspipelinelibrary/graphicspipelinelibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class VulkanExample: public VulkanExampleBase
2323
glm::mat4 modelView;
2424
glm::vec4 lightPos = glm::vec4(0.0f, -2.0f, 1.0f, 0.0f);
2525
} uniformData;
26-
std::vector<vks::Buffer> uniformBuffers;
26+
std::array<vks::Buffer, maxConcurrentFrames> uniformBuffers;
2727

2828
VkPipelineLayout pipelineLayout{ VK_NULL_HANDLE };
2929
VkDescriptorSetLayout descriptorSetLayout{ VK_NULL_HANDLE };

0 commit comments

Comments
 (0)