diff options
Diffstat (limited to 'tests/manual/rhi/stereo/window.h')
-rw-r--r-- | tests/manual/rhi/stereo/window.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/manual/rhi/stereo/window.h b/tests/manual/rhi/stereo/window.h index 28e25dfdb4..0a175e31a0 100644 --- a/tests/manual/rhi/stereo/window.h +++ b/tests/manual/rhi/stereo/window.h @@ -1,27 +1,29 @@ // 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 #include <QWindow> -#include <QtGui/private/qrhigles2_p.h> #include <QOffscreenSurface> +#include <rhi/qrhi.h> 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; |