![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrenderbasetypes_p.h>
Classes | |
struct | M8E8 |
Public Member Functions | |
constexpr | QSSGRenderTextureFormat (Format f) |
constexpr bool | isCompressedTextureFormat () const noexcept |
constexpr bool | isUncompressedTextureFormat () const noexcept |
bool | isDepthTextureFormat () const noexcept |
const char * | toString () const |
qint32 | getSizeofFormat () const |
qint32 | getNumberOfComponent () const |
void | decodeToFloat (void *inPtr, qint32 byteOfs, float *outPtr) const |
void | encodeToPixel (float *inPtr, void *outPtr, qint32 byteOfs) const |
bool | operator== (const QSSGRenderTextureFormat &other) const |
bool | operator!= (const QSSGRenderTextureFormat &other) const |
Public Attributes | |
Format | format |
Static Public Attributes | |
static constexpr quint8 | DepthTextureFlag = 1u << 6 |
static constexpr quint8 | CompressedTextureFlag = 1u << 7 |
Definition at line 66 of file qssgrenderbasetypes_p.h.
Definition at line 71 of file qssgrenderbasetypes_p.h.
|
inlineconstexpr |
Definition at line 173 of file qssgrenderbasetypes_p.h.
Definition at line 288 of file qssgrenderbasetypes.cpp.
References Alpha8, QSSGRenderTextureFormat::M8E8::e, getSizeofFormat(), i, Luminance8, LuminanceAlpha8, Q_ASSERT, qMax(), R11G11B10, R16F, R32F, R8, RG16F, RG32F, RG8, RGB32F, RGB8, RGBA16F, RGBA32F, RGBA8, RGBE8, sign(), SRGB8, and SRGB8A8.
|
inline |
Definition at line 253 of file qssgrenderbasetypes_p.h.
References Q_ASSERT, and RGBE8.
Referenced by QSSGLoadedTexture::loadTextureData(), and renderToKTXFileInternal().
|
inline |
Definition at line 192 of file qssgrenderbasetypes_p.h.
References Q_ASSERT, and RGBE8.
Referenced by decodeToFloat(), encodeToPixel(), QSSGLoadedTexture::loadTextureData(), and renderToKTXFileInternal().
|
inlineconstexprnoexcept |
Definition at line 175 of file qssgrenderbasetypes_p.h.
Referenced by QSSGLoadedTexture::loadTextureData().
|
inlinenoexcept |
Definition at line 185 of file qssgrenderbasetypes_p.h.
|
inlineconstexprnoexcept |
Definition at line 180 of file qssgrenderbasetypes_p.h.
|
inline |
Definition at line 342 of file qssgrenderbasetypes_p.h.
References other().
|
inline |
Definition at line 341 of file qssgrenderbasetypes_p.h.
References other().
QT_BEGIN_NAMESPACE const char * QSSGRenderTextureFormat::toString | ( | ) | const |
Definition at line 8 of file qssgrenderbasetypes.cpp.
References Alpha8, BC1, BC2, BC3, BC4, BC5, BC6H, BC7, Depth16, Depth24, Depth24Stencil8, Depth32, Luminance16, Luminance8, LuminanceAlpha8, R11_EAC_SNorm, R11_EAC_UNorm, R11G11B10, R16, R16F, R32F, R32I, R32UI, R8, RG11_EAC_SNorm, RG11_EAC_UNorm, RG16F, RG32F, RG8, RGB10_A2, RGB16F, RGB16I, RGB16UI, RGB32F, RGB32I, RGB32UI, RGB565, RGB8, RGB8_ETC2, RGB8_PunchThrough_Alpha1_ETC2, RGB8I, RGB8UI, RGB9E5, RGB_DXT1, RGBA16F, RGBA16I, RGBA16UI, RGBA32F, RGBA32I, RGBA32UI, RGBA5551, RGBA8, RGBA8_ETC2_EAC, RGBA8I, RGBA8UI, RGBA_ASTC_10x10, RGBA_ASTC_10x5, RGBA_ASTC_10x6, RGBA_ASTC_10x8, RGBA_ASTC_12x10, RGBA_ASTC_12x12, RGBA_ASTC_4x4, RGBA_ASTC_5x4, RGBA_ASTC_5x5, RGBA_ASTC_6x5, RGBA_ASTC_6x6, RGBA_ASTC_8x5, RGBA_ASTC_8x6, RGBA_ASTC_8x8, RGBA_DXT1, RGBA_DXT3, RGBA_DXT5, RGBE8, SRGB8, SRGB8_Alpha8_ASTC_10x10, SRGB8_Alpha8_ASTC_10x5, SRGB8_Alpha8_ASTC_10x6, SRGB8_Alpha8_ASTC_10x8, SRGB8_Alpha8_ASTC_12x10, SRGB8_Alpha8_ASTC_12x12, SRGB8_Alpha8_ASTC_4x4, SRGB8_Alpha8_ASTC_5x4, SRGB8_Alpha8_ASTC_5x5, SRGB8_Alpha8_ASTC_6x5, SRGB8_Alpha8_ASTC_6x6, SRGB8_Alpha8_ASTC_8x5, SRGB8_Alpha8_ASTC_8x6, SRGB8_Alpha8_ASTC_8x8, SRGB8_Alpha8_ETC2_EAC, SRGB8_ETC2, SRGB8_PunchThrough_Alpha1_ETC2, SRGB8A8, and Unknown.
Referenced by QSSGAllocateBuffer::addDebug(), QSSGBindTarget::addDebug(), and QSSGBaseTypeHelpers::toString().
|
staticconstexpr |
Definition at line 69 of file qssgrenderbasetypes_p.h.
|
staticconstexpr |
Definition at line 68 of file qssgrenderbasetypes_p.h.
Format QSSGRenderTextureFormat::format |
Definition at line 171 of file qssgrenderbasetypes_p.h.
Referenced by QQuick3DShaderUtilsBuffer::format(), and QSSGRhiEffectSystem::overriddenOutputFormat().