Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How to draw multiple objects using Vulkan API in Qt?

How to draw multiple objects using Vulkan API in Qt?

Scheduled Pinned Locked Moved Unsolved Qt 6
vulkanc++render
1 Posts 1 Posters 408 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QtEnthusiast_Skip
    wrote on 14 Jul 2022, 20:51 last edited by
    #1

    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:
    crfit.PNG

    Thanks!

    1 Reply Last reply
    0

    1/1

    14 Jul 2022, 20:51

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved