I’ve been following the tutorial on vulkan tutorials website and am stuck just before displaying a triangle.
Double checked my code and it seems to line up with the tutorial, therefore i’m not sure what i’m doing wrong.
Visual studio throws a debug assertion on line
If running from command line, I get the std::runtime_error printed as expected “Failed to submit draw command buffer”.
I’m not sure what other code is required to help with the issue, but any input would be appreciated. I’m sure the tutorial is well known, and perhaps someone is able to give some direction.
I skipped the part about validation layers in the tutorial. However, now I have implemented it and i’m getting the error printed “Validation layers requested, but not available!”
I suppose I should have implemented the validation layers after all. Just as the error says.
Switching RenderPass samples to VK_SAMPLE_COUNT_1_BIT fixed the issue to match. By mistake I must have tabbed on to VK_SAMPLE_COUNT_16_BIT.
Thank you for the attempt to help, i’m sure i’ll be around for the next while
VS is usually right about these things. Well, what’s the size of commandBuffers, and what’s the value of imageIndex at that time?
Layers are indeed indispensible. You do not need to implement it though. It suffices to run any Vulkan app with env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and all that stuff is done for you.