Gráfico de cena - Importação de textura no Vulkan

Mostra como usar uma textura criada diretamente com o Vulkan.

Squircle renderizado em uma textura Vulkan e exibido em um item <span translate=Qt Quick" src="images/vulkantextureimport-example.jpg" title="Squircle renderizado em uma textura Vulkan e exibido em um item Qt Quick"/>

O exemplo “Importação de textura do Vulkan” mostra como um aplicativo pode importar e usar um VkImage na cena “ Qt Quick ”. Isso oferece uma alternativa às abordagens de underlay ou overlay quando se trata de integrar a renderização nativa do Vulkan.

Este exemplo é, em muitos aspectos, equivalente ao exemplo “Importação de textura do Metal ”. O código de renderização do Vulkan foi extraído do exemplo “Vulkan Under QML ”.

Projeto de exemplo em @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.