diff options
Diffstat (limited to 'tests/manual/rhi/stereo/window.h')
-rw-r--r-- | tests/manual/rhi/stereo/window.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/manual/rhi/stereo/window.h b/tests/manual/rhi/stereo/window.h index ea35040a7a..0a175e31a0 100644 --- a/tests/manual/rhi/stereo/window.h +++ b/tests/manual/rhi/stereo/window.h @@ -1,5 +1,5 @@ // Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef WINDOW_H #define WINDOW_H @@ -11,17 +11,19 @@ class Window : public QWindow { public: - Window(); + Window(QRhi::Implementation graphicsApi); void releaseSwapChain(); protected: + QVulkanInstance instance; std::unique_ptr<QOffscreenSurface> m_fallbackSurface; std::unique_ptr<QRhi> m_rhi; std::unique_ptr<QRhiSwapChain> m_sc; std::unique_ptr<QRhiRenderBuffer> m_ds; std::unique_ptr<QRhiRenderPassDescriptor> m_rp; + QRhi::Implementation m_graphicsApi; bool m_hasSwapChain = false; QMatrix4x4 m_proj; |