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
qrhid3dhelpers_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 QRHID3DHELPERS_P_H
5#define QRHID3DHELPERS_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#include <rhi/qrhi.h>
19
20#include <QtGui/qwindow.h>
21
22#include <dxgi1_6.h>
23#include <dcomp.h>
24#include <d3dcompiler.h>
25
26#if __has_include(<dxcapi.h>)
27#include <dxcapi.h>
28#define QRHI_D3D12_HAS_DXC
29#endif
30
32
33namespace QRhiD3D {
34
35bool output6ForWindow(QWindow *w, IDXGIAdapter1 *adapter, IDXGIOutput6 **result);
36bool outputDesc1ForWindow(QWindow *w, IDXGIAdapter1 *adapter, DXGI_OUTPUT_DESC1 *result);
37float sdrWhiteLevelInNits(const DXGI_OUTPUT_DESC1 &outputDesc);
38
39pD3DCompile resolveD3DCompile();
40
41IDCompositionDevice *createDirectCompositionDevice();
42
43#ifdef QRHI_D3D12_HAS_DXC
44std::pair<IDxcCompiler *, IDxcLibrary *> createDxcCompiler();
45#endif
46
47void fillDriverInfo(QRhiDriverInfo *info, const DXGI_ADAPTER_DESC1 &desc);
48
49} // namespace
50
52
53#endif
\inmodule QtGui
Definition qwindow.h:63
float sdrWhiteLevelInNits(const DXGI_OUTPUT_DESC1 &outputDesc)
bool output6ForWindow(QWindow *w, IDXGIAdapter1 *adapter, IDXGIOutput6 **result)
pD3DCompile resolveD3DCompile()
bool outputDesc1ForWindow(QWindow *w, IDXGIAdapter1 *adapter, DXGI_OUTPUT_DESC1 *result)
IDCompositionDevice * createDirectCompositionDevice()
void fillDriverInfo(QRhiDriverInfo *info, const DXGI_ADAPTER_DESC1 &desc)
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
GLuint64EXT * result
[6]
QHostInfo info
[0]
\inmodule QtGui
Definition qrhi.h:1759