TextureProviderExtension QML Type (Uncreatable)
Tipo base astratto per estensioni di rendering che generano una texture. Altro...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| In C++: | QQuick3DTextureProviderExtension |
| Inherits: | |
| Inherited By: |
Nota: si tratta di un tipo non creabile. Non può essere istanziato in QML.
Enumerazioni
- SamplerHint
(since 6.11)
Caratteristiche
- samplerHint : SamplerHint
(since 6.11)
Descrizione dettagliata
TextureProviderExtension è un tipo base astratto non creabile per le estensioni di rendering che espongono una texture GPU alla scena Qt Quick 3D. Le sottoclassi (come RenderOutputProvider) possono essere assegnate alla proprietà textureProvider di un Texture, facendo sì che il codice di rendering dell'estensione venga eseguito automaticamente quando la scena richiede la texture.
Vedi anche RenderOutputProvider, QQuick3DTextureProviderExtension e QSSGRenderExtension.
Documentazione sull’enumerazione
[since 6.11] SamplerHint
Specifica un'indicazione sul tipo di texture fornita dall'estensione.
| Costante | Descrizione |
|---|---|
TextureProviderExtension.Sampler2D | Una texture 2D |
TextureProviderExtension.Sampler2DArray | Una texture ad array |
TextureProviderExtension.Sampler3D | Una texture 3D |
TextureProviderExtension.SamplerCube | Una texture a mappa cubica |
TextureProviderExtension.SamplerCubeArray | Un array di texture a mappa cubica |
TextureProviderExtension.SamplerBuffer | Una texture buffer |
Questa enumerazione è stata introdotta in Qt 6.11.
Documentazione delle proprietà
samplerHint : SamplerHint [since 6.11]
Questa proprietà contiene un'indicazione sul tipo di texture che verrà fornita dall'estensione. Ciò è necessario perché i dati della texture non verranno forniti finché non saranno necessari, ma i materiali che utilizzano il componente Texture devono sapere quale tipo di campionatore fornire.
Il valore predefinito è ` TextureProviderExtension.Sampler2D`.
Nota: questa proprietà viene utilizzata solo quando si utilizzano i CustomMaterials.
Questa proprietà è stata introdotta in Qt 6.11.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.