18#include <QtQuick/private/qtquickglobal_p.h>
19#include <private/qobject_p.h>
42class Q_QUICK_PRIVATE_EXPORT QSGTexturePlatformOpenGL :
public QNativeInterface::QSGOpenGLTexture
45 QSGTexturePlatformOpenGL(
QSGTexture *
t) : m_texture(
t) { }
48 GLuint nativeTexture()
const override;
53class Q_QUICK_PRIVATE_EXPORT QSGTexturePlatformD3D11 :
public QNativeInterface::QSGD3D11Texture
56 QSGTexturePlatformD3D11(
QSGTexture *
t) : m_texture(
t) { }
59 void *nativeTexture()
const override;
61class Q_QUICK_PRIVATE_EXPORT QSGTexturePlatformD3D12 :
public QNativeInterface::QSGD3D12Texture
64 QSGTexturePlatformD3D12(
QSGTexture *
t) : m_texture(
t) { }
67 int nativeResourceState()
const override;
68 void *nativeTexture()
const override;
73class Q_QUICK_PRIVATE_EXPORT QSGTexturePlatformMetal :
public QNativeInterface::QSGMetalTexture
76 QSGTexturePlatformMetal(
QSGTexture *
t) : m_texture(
t) { }
84class Q_QUICK_PRIVATE_EXPORT QSGTexturePlatformVulkan :
public QNativeInterface::QSGVulkanTexture
87 QSGTexturePlatformVulkan(
QSGTexture *
t) : m_texture(
t) { }
90 VkImage nativeImage()
const override;
91 VkImageLayout nativeImageLayout()
const override;
101 void resetDirtySamplerOptions();
102 bool hasDirtySamplerOptions()
const;
118 QSGTexturePlatformOpenGL m_openglTextureAccessor;
121 QSGTexturePlatformD3D11 m_d3d11TextureAccessor;
122 QSGTexturePlatformD3D12 m_d3d12TextureAccessor;
125 QSGTexturePlatformMetal m_metalTextureAccessor;
128 QSGTexturePlatformVulkan m_vulkanTextureAccessor;
static QSGTexturePrivate * get(QSGTexture *t)
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
WrapMode
Specifies how the sampler should treat texture coordinates.
AnisotropyLevel
Specifies the anisotropic filtering level to be used when the texture is not screen aligned.
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
size_t qHash(const QSGSamplerDescription &s, size_t seed=0) noexcept
bool operator!=(const QSGSamplerDescription &a, const QSGSamplerDescription &b) noexcept
bool operator==(const QSGSamplerDescription &a, const QSGSamplerDescription &b) noexcept
Q_QUICK_PRIVATE_EXPORT bool qsg_safeguard_texture(QSGTexture *)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QSGTexture::WrapMode verticalWrap
static QSGSamplerDescription fromTexture(QSGTexture *t)
QSGTexture::WrapMode horizontalWrap
QSGTexture::AnisotropyLevel anisotropylevel
QSGTexture::Filtering filtering
QSGTexture::Filtering mipmapFiltering