Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-119659

Qt3D RHI - Uniform buffers not bound for compute shaders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.6.2, 6.7.0 Beta2, 6.8.0 FF
    • 6.6, 6.7
    • Qt3D
    • None
    • All
    • 7dd1fe963 (dev), 51cfb893c (6.7), dbc230139 (6.6)

      Qt3D allocates and uploads uniform buffers but fails to bind uniform buffers for compute shaders. This causes the compute shader not to run correctly or to crash the program. When running the attached project in Xcode debugger, I get the following error:

      validateComputeFunctionArguments:819: failed assertion `Compute Function(main0): missing buffer binding at index 0 for _20[0].'
      

      You can build the project in Xcode with the CMake Xcode generator.

      Outside of Xcode, the example program will not render, or show black screen. If the particles are rendered they will stay still and not move around. This is because the compute shader fails to run.

      This also fails on windows, running directx and vulkan. 

      Example program the reproduces the issue:

      https://github.com/vpicaver/Qt3D_compute_particles_cpp

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            seanharmer Sean Harmer
            vpicaver Philip Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes