Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qrhitextureformats_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QRHITEXTUREFORMATS
5
#
define
QRHITEXTUREFORMATS
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
const
int
RhiTextureFormat_RGBA8
= 1;
19
const
int
RhiTextureFormat_BGRA8
= 2;
20
const
int
RhiTextureFormat_R8
= 3;
21
const
int
RhiTextureFormat_RG8
= 4;
22
const
int
RhiTextureFormat_R16
= 5;
23
const
int
RhiTextureFormat_RG16
= 6;
24
const
int
RhiTextureFormat_RED_OR_ALPHA8
= 7;
25
26
#
ifdef
__cplusplus
27
#
include
<
QtGui
/
rhi
/
qrhi
.
h
>
28
29
QT_BEGIN_NAMESPACE
30
31
static_assert
(QRhiTexture::RGBA8 == RhiTextureFormat_RGBA8,
"Incompatible RGBA8 value between c++ and shaders"
);
32
static_assert
(QRhiTexture::BGRA8 == RhiTextureFormat_BGRA8,
"Incompatible BGRA8 value between c++ and shaders"
);
33
static_assert
(QRhiTexture::R8 == RhiTextureFormat_R8,
"Incompatible R8 value between c++ and and shaders"
);
34
static_assert
(QRhiTexture::RG8 == RhiTextureFormat_RG8,
"Incompatible RG8 value between c++ and shaders"
);
35
static_assert
(QRhiTexture::RG16 == RhiTextureFormat_RG16,
"Incompatible RG16 value between c++ and shaders"
);
36
static_assert
(QRhiTexture::RED_OR_ALPHA8 == RhiTextureFormat_RED_OR_ALPHA8,
"Incompatible RED_OR_ALPHA value between c++ and shaders"
);
37
38
QT_END_NAMESPACE
39
40
#
endif
41
42
#
endif
RhiTextureFormat_RG16
const int RhiTextureFormat_RG16
Definition
qrhitextureformats_p.h:23
RhiTextureFormat_RGBA8
const int RhiTextureFormat_RGBA8
Definition
qrhitextureformats_p.h:18
RhiTextureFormat_RG8
const int RhiTextureFormat_RG8
Definition
qrhitextureformats_p.h:21
RhiTextureFormat_BGRA8
const int RhiTextureFormat_BGRA8
Definition
qrhitextureformats_p.h:19
RhiTextureFormat_RED_OR_ALPHA8
const int RhiTextureFormat_RED_OR_ALPHA8
Definition
qrhitextureformats_p.h:24
RhiTextureFormat_R16
const int RhiTextureFormat_R16
Definition
qrhitextureformats_p.h:22
RhiTextureFormat_R8
const int RhiTextureFormat_R8
Definition
qrhitextureformats_p.h:20
qtmultimedia
src
multimedia
shaders
qrhitextureformats_p.h
Generated on
for Qt by
1.18.0