How to draw multiple objects using Vulkan API in Qt?
Unsolved
Qt 6
-
Hi,
I have been working on this project where I am trying to use Vulkan to render graphics to the screen. I went through the "Hello Triangle" example available on Qt documentation and I was able to run and modify it to draw a rectangle as per my needs. Now I need to draw a circle inside that rectangle and I am trying to figure out what to do next to achieve that. My guess is I have to create separate pipeline, vertex buffer to draw another object but my confusion is how to write the draw commands together inside the startNextFrame() function of QVulkanWindowRenderer. The following is a picture of my desired output:
Thanks!