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

Provide access to CAMetalLayer on iOS

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.0 Beta1
    • QPA
    • None
    • iOS/tvOS/watchOS

      The QIOSWindow implementation provides access to the EGL layer:

      CAEAGLLayer *QIOSWindow::eaglLayer() const
      {
          Q_ASSERT([m_view.layer isKindOfClass:[CAEAGLLayer class]]);
          return static_cast<CAEAGLLayer *>(m_view.layer);
      }
      

      It would be useful to also have access to the metal layer:

      CAMetalLLayer *QIOSWindow::metalLayer() const
      {
          Q_ASSERT([m_view.layer isKindOfClass:[CAMetalLLayer class]]);
          return static_cast<CAMetalLLayer *>(m_view.layer);
      }
      

      This is especially useful when using OpenGL-Metal wrapper libraries such as MetalAngle (https://github.com/kakashidinho/metalangle).

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

            vestbo Tor Arne Vestbø
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes