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

Provide access to CAMetalLayer on iOS

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      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).

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes