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

Vulkan under QML example renders incorrectly with MoltenVK

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.15.0 Beta2
    • Fix Version/s: 6.0
    • Component/s: GUI: Vulkan, Qt RHI
    • Labels:
      None
    • Environment:
      macOS Catalina 10.15.3 on MacBook Pro with Intel Iris Plus Graphics 655 1536 MB

      MoltenVK 1.1.130 (from the corresponding LunarG Vulkan SDKs).
    • Platform/s:
      macOS

      Description

      Related issue: QTBUG-82600

      The Vulkan under QML example renders incorrectly: While the animation is displayed correctly, artefacts occur and the text is butchered. The shape of the artefact changes every time the program executed, but remains constant during execution.

      I'm running macOS Catalina with MoltenVK 1.1.130 (LunarG Vulkan SDK) and Qt 5.15.0 beta2. I changed the example's {main.cpp} in order to use classic QML type registration (I don't use QtCreator):

      #include <QGuiApplication>
      #include <QtQuick/QQuickView>
      
      #include "vulkansquircle.h"
      
      int main(int argc, char **argv)
      {
          QGuiApplication app(argc, argv);
      
          qmlRegisterType<VulkanSquircle>("VulkanUnderQML", 1, 0, "VulkanSquircle");
                                                                                                                                                                                                                        
          // This example needs Vulkan. It will not run otherwise.                                                                                                                                                      
          QQuickWindow::setSceneGraphBackend(QSGRendererInterface::VulkanRhi);
      
          QQuickView view;
          view.setResizeMode(QQuickView::SizeRootObjectToView);
          view.setSource(QUrl("qrc:///scenegraph/vulkanunderqml/main.qml"));
          view.show();
      
          return app.exec();
      }
      

       I highly doubt this has anything to do with the problem, but I want to be thorough.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            maltekliemann Malte Kliemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes