Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74406 Abstract away the graphics APIs in Qt
  3. QTBUG-78615

Withdrawn: Autotest QRhi/backend APIs via the Null backend

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Out of scope
    • P2: Important
    • 5.15
    • Qt RHI
    • None

    Description

      Expand the qrhi autotest with exploring new (auto)testing approaches.

      Something we could never do before is to have the actual graphics implementation "stubbed out", while leaving the API sitting on top functional. This is now possible with the Null backend of QRhi. Any QRhi test application or Qt Quick application can be run with this backend, and while they won't output anything to their window, all QRhi APIs will function in a sane way without the layers on top noticing anything.

      This allows testing the QRhi API and perhaps some things in the Qt Quick integration in autotests that can run in CI environments without requiring any actual graphics rendering support.

      Note however that meaningful testing needs more thinking. What exactly should the null backend do with data like buffers, textures, draw calls? What exactly do we want to verify here? The real deal is always the backend that renders something for real, let's not get blindsided and focus too much on testing an internal interface instead of the real life behavior.

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes