Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgraphicsframecapturerenderdoc_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGRAPHICSFRAMECAPTURERENDERDOC_P_P_H
5#define QGRAPHICSFRAMECAPTURERENDERDOC_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18
19#include <renderdoc_app.h>
21
23
24#if QT_CONFIG(thread)
25class QBasicMutex;
26#endif
27
29{
30public:
33
34 void setRhi(QRhi *rhi) override;
35 void startCaptureFrame() override;
36 void endCaptureFrame() override;
37 bool initialized() const override;
38 bool isCapturing() const override;
39 void openCapture() override;
40
41private:
42 void init();
43 void updateCapturePathAndTemplate();
44 static RENDERDOC_API_1_5_0 *s_rdocApi;
45#if QT_CONFIG(thread)
46 static QBasicMutex s_frameCaptureMutex;
47#endif
48 bool m_nativeHandlesSet;
49};
50
52
53#endif // QGRAPHICSFRAMECAPTURERENDERDOC_P_P_H
The QGraphicsFrameCaptureRenderDoc class provides a way to capture a record of draw calls for differe...
bool initialized() const override
Returns true if the API is loaded and can capture frames or not.
QGraphicsFrameCaptureRenderDoc()
Creates a new object of this class.
void startCaptureFrame() override
Starts a frame capture using the set native handles provided through QGraphicsFrameCaptureRenderDoc::...
void endCaptureFrame() override
Ends a frame capture started by a call to QGraphicsFrameCaptureRenderDoc::startCaptureFrame using the...
\inmodule QtCore
Definition qmutex.h:281
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
Combined button and popup list for selecting options.