![]() |
Qt 6.x
The Qt SDK
|
#include "qopengltexture.h"
#include "qopengltexture_p.h"
#include "qopengltexturehelper_p.h"
#include "qopenglfunctions.h"
#include <QtGui/qcolor.h>
#include <QtGui/qopenglcontext.h>
#include <QtCore/qdebug.h>
#include <private/qobject_p.h>
#include <private/qopenglcontext_p.h>
#include "moc_qopengltexture.cpp"
Go to the source code of this file.
Macros | |
#define | GL_TEXTURE_WRAP_R 0x8072 |
Functions | |
static bool | isSizedTextureFormat (QOpenGLTexture::TextureFormat internalFormat) |
static bool | isTextureTargetMultisample (QOpenGLTexture::Target target) |
static QOpenGLTexture::PixelFormat | pixelFormatCompatibleWithInternalFormat (QOpenGLTexture::TextureFormat internalFormat) |
static QOpenGLTexture::PixelType | pixelTypeCompatibleWithInternalFormat (QOpenGLTexture::TextureFormat internalFormat) |
static bool | isCompressedFormat (QOpenGLTexture::TextureFormat internalFormat) |
static bool | isNpot (int width, int height=1, int depth=1) |
QDebug | operator<< (QDebug debug, const QOpenGLTexture *t) |
#define GL_TEXTURE_WRAP_R 0x8072 |
Definition at line 19 of file qopengltexture.cpp.
|
static |
Definition at line 939 of file qopengltexture.cpp.
References QOpenGLTexture::AlphaFormat, QOpenGLTexture::D16, QOpenGLTexture::D24, QOpenGLTexture::D24S8, QOpenGLTexture::D32, QOpenGLTexture::D32F, QOpenGLTexture::D32FS8X24, QOpenGLTexture::DepthFormat, QOpenGLTexture::LuminanceAlphaFormat, QOpenGLTexture::LuminanceFormat, QOpenGLTexture::NoFormat, QOpenGLTexture::R11_EAC_SNorm, QOpenGLTexture::R11_EAC_UNorm, QOpenGLTexture::R16_SNorm, QOpenGLTexture::R16_UNorm, QOpenGLTexture::R16F, QOpenGLTexture::R16I, QOpenGLTexture::R16U, QOpenGLTexture::R32F, QOpenGLTexture::R32I, QOpenGLTexture::R32U, QOpenGLTexture::R5G6B5, QOpenGLTexture::R8_SNorm, QOpenGLTexture::R8_UNorm, QOpenGLTexture::R8I, QOpenGLTexture::R8U, QOpenGLTexture::R_ATI1N_SNorm, QOpenGLTexture::R_ATI1N_UNorm, QOpenGLTexture::RG11_EAC_SNorm, QOpenGLTexture::RG11_EAC_UNorm, QOpenGLTexture::RG11B10F, QOpenGLTexture::RG16_SNorm, QOpenGLTexture::RG16_UNorm, QOpenGLTexture::RG16F, QOpenGLTexture::RG16I, QOpenGLTexture::RG16U, QOpenGLTexture::RG32F, QOpenGLTexture::RG32I, QOpenGLTexture::RG32U, QOpenGLTexture::RG3B2, QOpenGLTexture::RG8_SNorm, QOpenGLTexture::RG8_UNorm, QOpenGLTexture::RG8I, QOpenGLTexture::RG8U, QOpenGLTexture::RG_ATI2N_SNorm, QOpenGLTexture::RG_ATI2N_UNorm, QOpenGLTexture::RGB10A2, QOpenGLTexture::RGB16_SNorm, QOpenGLTexture::RGB16_UNorm, QOpenGLTexture::RGB16F, QOpenGLTexture::RGB16I, QOpenGLTexture::RGB16U, QOpenGLTexture::RGB32F, QOpenGLTexture::RGB32I, QOpenGLTexture::RGB32U, QOpenGLTexture::RGB5A1, QOpenGLTexture::RGB8_ETC1, QOpenGLTexture::RGB8_ETC2, QOpenGLTexture::RGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::RGB8_SNorm, QOpenGLTexture::RGB8_UNorm, QOpenGLTexture::RGB8I, QOpenGLTexture::RGB8U, QOpenGLTexture::RGB9E5, QOpenGLTexture::RGB_BP_SIGNED_FLOAT, QOpenGLTexture::RGB_BP_UNorm, QOpenGLTexture::RGB_BP_UNSIGNED_FLOAT, QOpenGLTexture::RGB_DXT1, QOpenGLTexture::RGBA16_SNorm, QOpenGLTexture::RGBA16_UNorm, QOpenGLTexture::RGBA16F, QOpenGLTexture::RGBA16I, QOpenGLTexture::RGBA16U, QOpenGLTexture::RGBA32F, QOpenGLTexture::RGBA32I, QOpenGLTexture::RGBA32U, QOpenGLTexture::RGBA4, QOpenGLTexture::RGBA8_ETC2_EAC, QOpenGLTexture::RGBA8_SNorm, QOpenGLTexture::RGBA8_UNorm, QOpenGLTexture::RGBA8I, QOpenGLTexture::RGBA8U, QOpenGLTexture::RGBA_ASTC_10x10, QOpenGLTexture::RGBA_ASTC_10x5, QOpenGLTexture::RGBA_ASTC_10x6, QOpenGLTexture::RGBA_ASTC_10x8, QOpenGLTexture::RGBA_ASTC_12x10, QOpenGLTexture::RGBA_ASTC_12x12, QOpenGLTexture::RGBA_ASTC_4x4, QOpenGLTexture::RGBA_ASTC_5x4, QOpenGLTexture::RGBA_ASTC_5x5, QOpenGLTexture::RGBA_ASTC_6x5, QOpenGLTexture::RGBA_ASTC_6x6, QOpenGLTexture::RGBA_ASTC_8x5, QOpenGLTexture::RGBA_ASTC_8x6, QOpenGLTexture::RGBA_ASTC_8x8, QOpenGLTexture::RGBA_DXT1, QOpenGLTexture::RGBA_DXT3, QOpenGLTexture::RGBA_DXT5, QOpenGLTexture::RGBAFormat, QOpenGLTexture::RGBFormat, QOpenGLTexture::S8, QOpenGLTexture::SRGB8, QOpenGLTexture::SRGB8_Alpha8, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x8, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x12, QOpenGLTexture::SRGB8_Alpha8_ASTC_4x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x8, QOpenGLTexture::SRGB8_Alpha8_ETC2_EAC, QOpenGLTexture::SRGB8_ETC2, QOpenGLTexture::SRGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::SRGB_Alpha_DXT1, QOpenGLTexture::SRGB_Alpha_DXT3, QOpenGLTexture::SRGB_Alpha_DXT5, QOpenGLTexture::SRGB_BP_UNorm, and QOpenGLTexture::SRGB_DXT1.
Referenced by QOpenGLTexturePrivate::allocateMutableStorage(), QOpenGLTexture::generateMipMaps(), QOpenGLTexture::generateMipMaps(), and QOpenGLTexturePrivate::setCompressedData().
|
static |
Definition at line 2884 of file qopengltexture.cpp.
Referenced by QOpenGLTexture::setSize(), and QSGOpaqueTextureMaterialRhiShader::updateSampledImage().
|
static |
Definition at line 289 of file qopengltexture.cpp.
References QOpenGLTexture::AlphaFormat, QOpenGLTexture::D16, QOpenGLTexture::D24, QOpenGLTexture::D24S8, QOpenGLTexture::D32, QOpenGLTexture::D32F, QOpenGLTexture::D32FS8X24, QOpenGLTexture::DepthFormat, QOpenGLTexture::LuminanceAlphaFormat, QOpenGLTexture::LuminanceFormat, QOpenGLTexture::NoFormat, QOpenGLTexture::R11_EAC_SNorm, QOpenGLTexture::R11_EAC_UNorm, QOpenGLTexture::R16_SNorm, QOpenGLTexture::R16_UNorm, QOpenGLTexture::R16F, QOpenGLTexture::R16I, QOpenGLTexture::R16U, QOpenGLTexture::R32F, QOpenGLTexture::R32I, QOpenGLTexture::R32U, QOpenGLTexture::R5G6B5, QOpenGLTexture::R8_SNorm, QOpenGLTexture::R8_UNorm, QOpenGLTexture::R8I, QOpenGLTexture::R8U, QOpenGLTexture::R_ATI1N_SNorm, QOpenGLTexture::R_ATI1N_UNorm, QOpenGLTexture::RG11_EAC_SNorm, QOpenGLTexture::RG11_EAC_UNorm, QOpenGLTexture::RG11B10F, QOpenGLTexture::RG16_SNorm, QOpenGLTexture::RG16_UNorm, QOpenGLTexture::RG16F, QOpenGLTexture::RG16I, QOpenGLTexture::RG16U, QOpenGLTexture::RG32F, QOpenGLTexture::RG32I, QOpenGLTexture::RG32U, QOpenGLTexture::RG3B2, QOpenGLTexture::RG8_SNorm, QOpenGLTexture::RG8_UNorm, QOpenGLTexture::RG8I, QOpenGLTexture::RG8U, QOpenGLTexture::RG_ATI2N_SNorm, QOpenGLTexture::RG_ATI2N_UNorm, QOpenGLTexture::RGB10A2, QOpenGLTexture::RGB16_SNorm, QOpenGLTexture::RGB16_UNorm, QOpenGLTexture::RGB16F, QOpenGLTexture::RGB16I, QOpenGLTexture::RGB16U, QOpenGLTexture::RGB32F, QOpenGLTexture::RGB32I, QOpenGLTexture::RGB32U, QOpenGLTexture::RGB5A1, QOpenGLTexture::RGB8_ETC1, QOpenGLTexture::RGB8_ETC2, QOpenGLTexture::RGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::RGB8_SNorm, QOpenGLTexture::RGB8_UNorm, QOpenGLTexture::RGB8I, QOpenGLTexture::RGB8U, QOpenGLTexture::RGB9E5, QOpenGLTexture::RGB_BP_SIGNED_FLOAT, QOpenGLTexture::RGB_BP_UNorm, QOpenGLTexture::RGB_BP_UNSIGNED_FLOAT, QOpenGLTexture::RGB_DXT1, QOpenGLTexture::RGBA16_SNorm, QOpenGLTexture::RGBA16_UNorm, QOpenGLTexture::RGBA16F, QOpenGLTexture::RGBA16I, QOpenGLTexture::RGBA16U, QOpenGLTexture::RGBA32F, QOpenGLTexture::RGBA32I, QOpenGLTexture::RGBA32U, QOpenGLTexture::RGBA4, QOpenGLTexture::RGBA8_ETC2_EAC, QOpenGLTexture::RGBA8_SNorm, QOpenGLTexture::RGBA8_UNorm, QOpenGLTexture::RGBA8I, QOpenGLTexture::RGBA8U, QOpenGLTexture::RGBA_ASTC_10x10, QOpenGLTexture::RGBA_ASTC_10x5, QOpenGLTexture::RGBA_ASTC_10x6, QOpenGLTexture::RGBA_ASTC_10x8, QOpenGLTexture::RGBA_ASTC_12x10, QOpenGLTexture::RGBA_ASTC_12x12, QOpenGLTexture::RGBA_ASTC_4x4, QOpenGLTexture::RGBA_ASTC_5x4, QOpenGLTexture::RGBA_ASTC_5x5, QOpenGLTexture::RGBA_ASTC_6x5, QOpenGLTexture::RGBA_ASTC_6x6, QOpenGLTexture::RGBA_ASTC_8x5, QOpenGLTexture::RGBA_ASTC_8x6, QOpenGLTexture::RGBA_ASTC_8x8, QOpenGLTexture::RGBA_DXT1, QOpenGLTexture::RGBA_DXT3, QOpenGLTexture::RGBA_DXT5, QOpenGLTexture::RGBAFormat, QOpenGLTexture::RGBFormat, QOpenGLTexture::S8, QOpenGLTexture::SRGB8, QOpenGLTexture::SRGB8_Alpha8, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x8, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x12, QOpenGLTexture::SRGB8_Alpha8_ASTC_4x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x8, QOpenGLTexture::SRGB8_Alpha8_ETC2_EAC, QOpenGLTexture::SRGB8_ETC2, QOpenGLTexture::SRGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::SRGB_Alpha_DXT1, QOpenGLTexture::SRGB_Alpha_DXT3, QOpenGLTexture::SRGB_Alpha_DXT5, QOpenGLTexture::SRGB_BP_UNorm, and QOpenGLTexture::SRGB_DXT1.
Referenced by QOpenGLTexturePrivate::isUsingImmutableStorage().
|
static |
Definition at line 437 of file qopengltexture.cpp.
References QOpenGLTexture::Target1D, QOpenGLTexture::Target1DArray, QOpenGLTexture::Target2D, QOpenGLTexture::Target2DArray, QOpenGLTexture::Target2DMultisample, QOpenGLTexture::Target2DMultisampleArray, QOpenGLTexture::Target3D, QOpenGLTexture::TargetBuffer, QOpenGLTexture::TargetCubeMap, QOpenGLTexture::TargetCubeMapArray, and QOpenGLTexture::TargetRectangle.
Referenced by QOpenGLTexturePrivate::isUsingImmutableStorage().
QDebug operator<< | ( | QDebug | debug, |
const QOpenGLTexture * | t | ||
) |
Definition at line 4809 of file qopengltexture.cpp.
|
static |
Definition at line 483 of file qopengltexture.cpp.
References QOpenGLTexture::NoFormat, QOpenGLTexture::NoSourceFormat, QOpenGLTexture::R16_SNorm, QOpenGLTexture::R16_UNorm, QOpenGLTexture::R16U, QOpenGLTexture::R32U, QOpenGLTexture::R8_SNorm, QOpenGLTexture::R8_UNorm, QOpenGLTexture::R8I, QOpenGLTexture::R8U, QOpenGLTexture::Red, QOpenGLTexture::Red_Integer, QOpenGLTexture::RG, QOpenGLTexture::RG16_SNorm, QOpenGLTexture::RG16_UNorm, QOpenGLTexture::RG16U, QOpenGLTexture::RG32U, QOpenGLTexture::RG8_SNorm, QOpenGLTexture::RG8_UNorm, QOpenGLTexture::RG8I, QOpenGLTexture::RG8U, QOpenGLTexture::RG_Integer, QOpenGLTexture::RGB, QOpenGLTexture::RGB16_SNorm, QOpenGLTexture::RGB16_UNorm, QOpenGLTexture::RGB16U, QOpenGLTexture::RGB32U, QOpenGLTexture::RGB8_SNorm, QOpenGLTexture::RGB8_UNorm, QOpenGLTexture::RGB8I, QOpenGLTexture::RGB8U, QOpenGLTexture::RGB_Integer, QOpenGLTexture::RGBA, QOpenGLTexture::RGBA16_SNorm, QOpenGLTexture::RGBA16_UNorm, QOpenGLTexture::RGBA16U, QOpenGLTexture::RGBA32U, QOpenGLTexture::RGBA8_SNorm, QOpenGLTexture::RGBA8_UNorm, QOpenGLTexture::RGBA8I, QOpenGLTexture::RGBA8U, and QOpenGLTexture::RGBA_Integer.
Referenced by QOpenGLTexture::allocateStorage().
|
static |
Definition at line 760 of file qopengltexture.cpp.
References QOpenGLTexture::AlphaFormat, QOpenGLTexture::D16, QOpenGLTexture::D24, QOpenGLTexture::D24S8, QOpenGLTexture::D32, QOpenGLTexture::D32F, QOpenGLTexture::D32FS8X24, QOpenGLTexture::DepthFormat, QOpenGLTexture::Float16, QOpenGLTexture::Float32, QOpenGLTexture::Float32_D32_UInt32_S8_X24, QOpenGLTexture::Int8, QOpenGLTexture::LuminanceAlphaFormat, QOpenGLTexture::LuminanceFormat, QOpenGLTexture::NoFormat, QOpenGLTexture::NoPixelType, QOpenGLTexture::R11_EAC_SNorm, QOpenGLTexture::R11_EAC_UNorm, QOpenGLTexture::R16_SNorm, QOpenGLTexture::R16_UNorm, QOpenGLTexture::R16F, QOpenGLTexture::R16I, QOpenGLTexture::R16U, QOpenGLTexture::R32F, QOpenGLTexture::R32I, QOpenGLTexture::R32U, QOpenGLTexture::R5G6B5, QOpenGLTexture::R8_SNorm, QOpenGLTexture::R8_UNorm, QOpenGLTexture::R8I, QOpenGLTexture::R8U, QOpenGLTexture::R_ATI1N_SNorm, QOpenGLTexture::R_ATI1N_UNorm, QOpenGLTexture::RG11_EAC_SNorm, QOpenGLTexture::RG11_EAC_UNorm, QOpenGLTexture::RG11B10F, QOpenGLTexture::RG16_SNorm, QOpenGLTexture::RG16_UNorm, QOpenGLTexture::RG16F, QOpenGLTexture::RG16I, QOpenGLTexture::RG16U, QOpenGLTexture::RG32F, QOpenGLTexture::RG32I, QOpenGLTexture::RG32U, QOpenGLTexture::RG3B2, QOpenGLTexture::RG8_SNorm, QOpenGLTexture::RG8_UNorm, QOpenGLTexture::RG8I, QOpenGLTexture::RG8U, QOpenGLTexture::RG_ATI2N_SNorm, QOpenGLTexture::RG_ATI2N_UNorm, QOpenGLTexture::RGB10A2, QOpenGLTexture::RGB16_SNorm, QOpenGLTexture::RGB16_UNorm, QOpenGLTexture::RGB16F, QOpenGLTexture::RGB16I, QOpenGLTexture::RGB16U, QOpenGLTexture::RGB32F, QOpenGLTexture::RGB32I, QOpenGLTexture::RGB32U, QOpenGLTexture::RGB5A1, QOpenGLTexture::RGB8_ETC1, QOpenGLTexture::RGB8_ETC2, QOpenGLTexture::RGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::RGB8_SNorm, QOpenGLTexture::RGB8_UNorm, QOpenGLTexture::RGB8I, QOpenGLTexture::RGB8U, QOpenGLTexture::RGB9E5, QOpenGLTexture::RGB_BP_SIGNED_FLOAT, QOpenGLTexture::RGB_BP_UNorm, QOpenGLTexture::RGB_BP_UNSIGNED_FLOAT, QOpenGLTexture::RGB_DXT1, QOpenGLTexture::RGBA16_SNorm, QOpenGLTexture::RGBA16_UNorm, QOpenGLTexture::RGBA16F, QOpenGLTexture::RGBA16I, QOpenGLTexture::RGBA16U, QOpenGLTexture::RGBA32F, QOpenGLTexture::RGBA32I, QOpenGLTexture::RGBA32U, QOpenGLTexture::RGBA4, QOpenGLTexture::RGBA8_ETC2_EAC, QOpenGLTexture::RGBA8_SNorm, QOpenGLTexture::RGBA8_UNorm, QOpenGLTexture::RGBA8I, QOpenGLTexture::RGBA8U, QOpenGLTexture::RGBA_ASTC_10x10, QOpenGLTexture::RGBA_ASTC_10x5, QOpenGLTexture::RGBA_ASTC_10x6, QOpenGLTexture::RGBA_ASTC_10x8, QOpenGLTexture::RGBA_ASTC_12x10, QOpenGLTexture::RGBA_ASTC_12x12, QOpenGLTexture::RGBA_ASTC_4x4, QOpenGLTexture::RGBA_ASTC_5x4, QOpenGLTexture::RGBA_ASTC_5x5, QOpenGLTexture::RGBA_ASTC_6x5, QOpenGLTexture::RGBA_ASTC_6x6, QOpenGLTexture::RGBA_ASTC_8x5, QOpenGLTexture::RGBA_ASTC_8x6, QOpenGLTexture::RGBA_ASTC_8x8, QOpenGLTexture::RGBA_DXT1, QOpenGLTexture::RGBA_DXT3, QOpenGLTexture::RGBA_DXT5, QOpenGLTexture::RGBAFormat, QOpenGLTexture::RGBFormat, QOpenGLTexture::S8, QOpenGLTexture::SRGB8, QOpenGLTexture::SRGB8_Alpha8, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_10x8, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x10, QOpenGLTexture::SRGB8_Alpha8_ASTC_12x12, QOpenGLTexture::SRGB8_Alpha8_ASTC_4x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x4, QOpenGLTexture::SRGB8_Alpha8_ASTC_5x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_6x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x5, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x6, QOpenGLTexture::SRGB8_Alpha8_ASTC_8x8, QOpenGLTexture::SRGB8_Alpha8_ETC2_EAC, QOpenGLTexture::SRGB8_ETC2, QOpenGLTexture::SRGB8_PunchThrough_Alpha1_ETC2, QOpenGLTexture::SRGB_Alpha_DXT1, QOpenGLTexture::SRGB_Alpha_DXT3, QOpenGLTexture::SRGB_Alpha_DXT5, QOpenGLTexture::SRGB_BP_UNorm, QOpenGLTexture::SRGB_DXT1, QOpenGLTexture::UInt16, QOpenGLTexture::UInt16_R5G6B5, QOpenGLTexture::UInt16_RGB5A1, QOpenGLTexture::UInt16_RGB5A1_Rev, QOpenGLTexture::UInt16_RGBA4, QOpenGLTexture::UInt32, QOpenGLTexture::UInt32_D24S8, QOpenGLTexture::UInt32_RG11B10F, QOpenGLTexture::UInt32_RGB10A2, QOpenGLTexture::UInt8, and QOpenGLTexture::UInt8_RG3B2.
Referenced by QOpenGLTexture::allocateStorage().