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
5#ifndef QSSG_RENDER_IMAGE_TEXTURE_H
6#define QSSG_RENDER_IMAGE_TEXTURE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qglobal_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QRhiTexture;
24
26{
28 RGBE8 = 1 << 1,
29 Linear = 1 << 2
30};
31
33{
34 bool hasTransparency() const { return this->operator&(QSSGRenderImageTextureFlagValue::HasTransparency); }
36
37 bool isRgbe8() const { return this->operator&(QSSGRenderImageTextureFlagValue::RGBE8); }
38 void setRgbe8(bool inValue) { setFlag(QSSGRenderImageTextureFlagValue::RGBE8, inValue); }
39
40 bool isLinear() const { return this->operator&(QSSGRenderImageTextureFlagValue::Linear); }
41 void setLinear(bool inValue) { setFlag(QSSGRenderImageTextureFlagValue::Linear, inValue); }
42};
43
45{
46 QRhiTexture *m_texture = nullptr; // not owned
49};
50
51QT_END_NAMESPACE
52
53#endif
QSSGRenderImageTextureFlagValue
QSSGRenderImageTextureFlags m_flags