TextureProviderExtension QML Type | Qt Quick 3D | Qt 6.11.1
Description: Abstract base type for render extensions that produce a texture.

- Qt 6.11
- Qt Quick 3D
- QML Types
- TextureProviderExtension
- Qt Quick 3D | Commercial or GPLv3

# TextureProviderExtension QML Type

Abstract base type for render extensions that produce a texture. More...

Import Statement: | `import QtQuick3D`
Since: | Qt 6.11
In C++: | QQuick3DTextureProviderExtension
Inherits: | RenderExtension
Inherited By: | RenderOutputProvider

- List of all members, including inherited members

## Properties

- samplerHint : enumeration

## Detailed Description

TextureProviderExtension is an uncreatable abstract base type for render extensions that expose a GPU texture to the Qt Quick 3D scene. Subclasses (such as RenderOutputProvider) can be assigned to the textureProvider property of a Texture, causing the extension's render code to run automatically when the texture is needed by the scene.

See also RenderOutputProvider, QQuick3DTextureProviderExtension, and QSSGRenderExtension.

## Property Documentation

### samplerHint : enumeration

This property contains a hint about the type of texture that will be provided by the extension. This is necessary because the texture data will not be provided until it is necessary, but materials that use the Texture component need to know what type of sampler to provide. This property should be set to one of the following values:

Constant | Description
--- | ---
`TextureProviderExtension.Sampler2D` | The texture will be a 2D texture.
`TextureProviderExtension.Sampler2DArray` | The texture will be an array texture.
`TextureProviderExtension.Sampler3D` | The texture will be a 3D texture.
`TextureProviderExtension.SamplerCube` | The texture will be a cube map texture.
`TextureProviderExtension.SamplerCubeArray` | The texture will be an array of cube map textures.
`TextureProviderExtension.SamplerBuffer` | The texture will be a buffer texture.

The default value is `TextureProviderExtension.Sampler2D`.

Note: This property is only used when using CustomMaterials.