Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5#ifndef QGRAPHICSFRAMECAPTURERENDERDOC_P_P_H
6#define QGRAPHICSFRAMECAPTURERENDERDOC_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19
20#include <renderdoc_app.h>
22
24
25#if QT_CONFIG(thread)
26class QBasicMutex;
27#endif
28
30{
31public:
34
35 void setRhi(QRhi *rhi) override;
36 void startCaptureFrame() override;
37 void endCaptureFrame() override;
38 bool initialized() const override;
39 bool isCapturing() const override;
40 void openCapture() override;
41
42private:
43 void init();
44 void updateCapturePathAndTemplate();
45 static RENDERDOC_API_1_5_0 *s_rdocApi;
46#if QT_CONFIG(thread)
48#endif
49 bool m_nativeHandlesSet;
50};
51
52QT_END_NAMESPACE
53
54#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...