Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set a GraphicPipline with multiple QRhiShaderResourceBindings sets?
Forum Updated to NodeBB v4.3 + New Features

How to set a GraphicPipline with multiple QRhiShaderResourceBindings sets?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qrhishadervulkan
1 Posts 1 Posters 21 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.
  • 9 Offline
    9 Offline
    990414020
    wrote last edited by
    #1

    Hi All,

    I'm using RHI for a 3d application. The fragment shaders have the textures with two sets, like

    layout(set=0 binding=0) uniform sampler2D texture0;
    layout(set=1 binding=0) uniform sampler2D texture1;
    

    The texture0 stores a huge size of common data for planty of objects, while texture1 is the data for each object. I want to use a QRhiShaderResourceBindings srb0 for set=0, which is applied for all the objects. For each object, a different srb1 is used for each object. However, the graphic pipeline has only one function:

    pipeline->setShaderResourceBindings(srb0.get());
    

    I have also not found any place to specifiy the number of set in QRhiShaderResourceBindings.
    I want to ask if there is any way solve this problem?

    Many thanks in advance.

    1 Reply Last reply
    0

    • Login

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