IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Detailed Description

Provides access to and enables adopting Vulkan image objects.

This struct was introduced in Qt 6.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

  • Header: QSGVulkanTexture

  • Since: Qt 6.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Quick)

    target_link_libraries(mytarget PRIVATE Qt6::Quick)

  • qmake: QT += quick

  • Group: QSGVulkanTexture is part of native-interfaces, native-interfaces-qsgtexture

Detailed Description

 

Member Function Documentation

 

[static, since 6.0] QSGTexture *QSGVulkanTexture::fromNative(VkImage image, VkImageLayout layout, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})

Creates a new QSGTexture wrapping an existing Vulkan image object for window.

The native object is wrapped, but not owned, by the resulting QSGTexture. The caller of the function is responsible for deleting the returned QSGTexture, but that will not destroy the underlying native object.

This function is currently suitable for 2D RGBA textures only.

This function will return null if the scene graph has not yet been initialized.

layout must specify the current layout of the image.

Use options to customize the texture attributes. Only the TextureHasAlphaChannel and TextureHasMipmaps are taken into account here.

size specifies the size in pixels.

This function must be called on the scene graph rendering thread.

This function was introduced in Qt 6.0.

See Also

[pure virtual] VkImage QSGVulkanTexture::nativeImage() const

Returns the VkImage handle.

[pure virtual] VkImageLayout QSGVulkanTexture::nativeImageLayout() const

Returns the image layout.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+