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
qssgrenderimagetexture_p.h
Go to the documentation of this file.
1// Copyright (C) 2008-2012 NVIDIA Corporation.
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6
7#ifndef QSSG_RENDER_IMAGE_TEXTURE_H
8#define QSSG_RENDER_IMAGE_TEXTURE_H
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists purely as an
15// implementation detail. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
21#include <private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QRhiTexture;
26
28{
30 RGBE8 = 1 << 1,
31 Linear = 1 << 2,
33};
34
36{
37 bool hasTransparency() const { return this->operator&(QSSGRenderImageTextureFlagValue::HasTransparency); }
39
40 bool isRgbe8() const { return this->operator&(QSSGRenderImageTextureFlagValue::RGBE8); }
41 void setRgbe8(bool inValue) { setFlag(QSSGRenderImageTextureFlagValue::RGBE8, inValue); }
42
43 bool isLinear() const { return this->operator&(QSSGRenderImageTextureFlagValue::Linear); }
44 void setLinear(bool inValue) { setFlag(QSSGRenderImageTextureFlagValue::Linear, inValue); }
45
48};
49
51{
52 QRhiTexture *m_texture = nullptr; // not owned
55};
56
57QT_END_NAMESPACE
58
59#endif
QSSGRenderImageTextureFlagValue
QSSGRenderImageTextureFlags m_flags