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
qgraphicsframecapturemetal_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 QGRAPHICSFRAMEDECAPTUREMETAL_P_P_H
5#define QGRAPHICSFRAMEDECAPTUREMETAL_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
19#include <QtCore/qmutex.h>
20#ifdef Q_OS_MACOS
21#include <QtCore/qprocess.h>
22#endif
23
25Q_FORWARD_DECLARE_OBJC_CLASS(MTLCaptureDescriptor);
27
29
31{
32public:
35
36 void setRhi(QRhi *rhi) override;
37 void startCaptureFrame() override;
38 void endCaptureFrame() override;
39 bool initialized() const override;
40 bool isCapturing() const override;
41 void openCapture() override;
42
43private:
44 void updateCaptureFileName();
45#if defined(Q_OS_MACOS) && QT_CONFIG(process)
46 QProcess *m_process = nullptr;
47#endif
48 MTLCaptureManager *m_captureManager = nullptr;
49 MTLCaptureDescriptor *m_captureDescriptor = nullptr;
50 NSURL *m_traceURL = nullptr;
51 bool m_initialized = false;
52 static uint frameNumber;
53};
54
56
57#endif // QGRAPHICSFRAMEDECAPTUREMETAL_P_P_H
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
unsigned int uint
Definition qtypes.h:34