Grafico delle scene - Importazione di texture in Vulkan

Mostra come utilizzare una texture creata direttamente con Vulkan.

Squircle renderizzato in una texture Vulkan e visualizzato in un elemento <span translate=Qt Quick" src="images/vulkantextureimport-example.jpg" title="Squircle renderizzato in una texture Vulkan e visualizzato in un elemento Qt Quick"/>

L'esempio "Importazione texture Vulkan" illustra come un'applicazione possa importare e utilizzare un oggetto VkImage nella scena " Qt Quick ". Ciò offre un'alternativa agli approcci " underlay " o "overlay" quando si tratta di integrare il rendering nativo di Vulkan.

Questo esempio è per molti aspetti equivalente all’esempio «Importazione di texture Metal ». Il codice di rendering Vulkan è tratto dall’esempio «Vulkan Under QML ».

Progetto di esempio su code.qt.io

© 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.