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
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
20const int RhiTextureFormat_R8 = 3;
25
26#ifdef __cplusplus
27#include <QtGui/rhi/qrhi.h>
28
29QT_BEGIN_NAMESPACE
30
31static_assert(QRhiTexture::RGBA8 == RhiTextureFormat_RGBA8, "Incompatible RGBA8 value between c++ and shaders");
32static_assert(QRhiTexture::BGRA8 == RhiTextureFormat_BGRA8, "Incompatible BGRA8 value between c++ and shaders");
33static_assert(QRhiTexture::R8 == RhiTextureFormat_R8, "Incompatible R8 value between c++ and and shaders");
34static_assert(QRhiTexture::RG8 == RhiTextureFormat_RG8, "Incompatible RG8 value between c++ and shaders");
35static_assert(QRhiTexture::RG16 == RhiTextureFormat_RG16, "Incompatible RG16 value between c++ and shaders");
36static_assert(QRhiTexture::RED_OR_ALPHA8 == RhiTextureFormat_RED_OR_ALPHA8, "Incompatible RED_OR_ALPHA value between c++ and shaders");
37
38QT_END_NAMESPACE
39
40#endif
41
42#endif
const int RhiTextureFormat_RG16
const int RhiTextureFormat_RGBA8
const int RhiTextureFormat_RG8
const int RhiTextureFormat_BGRA8
const int RhiTextureFormat_RED_OR_ALPHA8
const int RhiTextureFormat_R16
const int RhiTextureFormat_R8