qt5base-lts/tests/manual/rhi/hellominimalcrossgfxtriangle
Laszlo Agocs 97da4519ba Add a dedicated QWindow surface type for D3D
Even though there is no D3D-specific logic in the windows platform
plugin, meaning a QWindow with either OpenGLSurface or VulkanSurface
(or anything really) is DXGI/D3D-compatible, it now looks like it is
beneficial, and more future proof, if there is a dedicated surface
type.

As the linked report shows, there are OpenGL-specific workarounds
accumulated in the platform plugin, while not being clear if these
are relevant to non-OpenGL content, or if they are relevant at all
still. (and some of these can be difficult/impossible to retest and
verify in practice)

When D3D-based windows use the same surface type, all these are
active for those windows as well, while Vulkan-based windows have
their own type and so some of these old workarounds are not active
for those. To reduce confusion, having a dedicated surface type for
D3D as well allows the logic to skip the old OpenGL workarounds,
giving us (and users) a more clear overall behavior when it comes
to OpenGL vs. Vulkan vs. D3D.

The change is compatible with any existing code in other modules
because any code that uses OpenGLSurface for D3D will continue to
work, using the new type can be introduced incrementally.

Task-number: QTBUG-89715
Change-Id: Ieba86a580bf5a3636730952184dc3a3ab7669b26
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-01-04 10:37:11 +00:00
..
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
hellominimalcrossgfxtriangle.pro Clean up and modernize hellominimalcrossgfxtriangle manual test 2020-02-04 10:15:02 +01:00
hellominimalcrossgfxtriangle.qrc Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00
hellowindow.cpp rhi: Harmonize create-destroy API pattern with the rest of Qt 2020-05-28 17:53:32 +02:00
hellowindow.h Clean up and modernize hellominimalcrossgfxtriangle manual test 2020-02-04 10:15:02 +01:00
main.cpp High-DPI: Remove usage of Qt::AA_EnableHighDpiScaling 2020-08-28 20:08:43 +02:00
window.cpp Add a dedicated QWindow surface type for D3D 2021-01-04 10:37:11 +00:00
window.h Clean up and modernize hellominimalcrossgfxtriangle manual test 2020-02-04 10:15:02 +01:00