QNativeInterface::QSGD3D12Texture Struct
Proporciona acceso y permite adoptar objetos de textura Direct3D 12. Más...
| Cabecera: | #include <QSGTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick)target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Desde: | Qt 6.6 |
- Lista de todos los miembros, incluyendo los heredados
- QSGD3D12Texture es parte de Interfaces Nativas.
Funciones Públicas
| virtual void * | nativeTexture() const = 0 |
Miembros Públicos Estáticos
(since 6.6) QSGTexture * | fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
Documentación de las funciones de los miembros
[static, since 6.6] QSGTexture *QSGD3D12Texture::fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})
Crea un nuevo QSGTexture envolviendo un objeto Direct 3D 12 texture existente para window.
El objeto nativo está envuelto, pero no es propiedad, del QSGTexture resultante. El que llama a la función es responsable de borrar el QSGTexture devuelto, pero eso no destruirá el objeto nativo subyacente.
Esta función sólo es adecuada para texturas 2D RGBA.
Advertencia: Esta función devolverá null si el gráfico de escena aún no ha sido inicializado.
Utilice options para personalizar los atributos de la textura. Aquí sólo se tienen en cuenta TextureHasAlphaChannel y TextureHasMipmaps.
size especifica el tamaño en píxeles.
resourceState debe especificar el estado actual del recurso de textura.
Nota: Esta función debe ser llamada en el hilo de renderizado del gráfico de escena.
Esta función se introdujo en Qt 6.6.
Véase también QQuickWindow::sceneGraphInitialized(), QSGTexture, Gráfico de escena - Importación de texturas metálicas, y Gráfico de escena - Importación de texturas Vulkan.
[pure virtual] void *QSGD3D12Texture::nativeTexture() const
Devuelve el objeto ID3D12Texture.
© 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.