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

Adapt QQuickWindow::createTextureFromNativeObject() to new platform abstraction pattern

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 6.0
    • 6.0
    • Qt RHI
    • None
    • All

    Description

      In other platform-specific API we are moving away from casts between void* etc. from platform handles, and we could aim for the same approach in createTextureForNativeObject (and maybe other places).

      It could look something like this:

      class QSGOpenGLTexture 
      {
      public:
          static QSGTexture *createTexture(QQuickWindow *window, GLuint id, const QSize &size); 
      };
      

      And similar factory functions for other backends. That way we get rid of the quint64 cast in QQuickWindow and make the function type-safe, plus it will be more consistent with QPA APIs in Qt 6.

      Attachments

        For Gerrit Dashboard: QTBUG-85239
        # Subject Branch Project Status CR V

        Activity

          People

            lagocs Laszlo Agocs
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes