NativeTexture Struct

struct QSGTexture::NativeTexture

Contains information about the underlying native resources of a texture. More...

This struct was introduced in Qt 5.15.

Public Variables

int layout
const void *object

Detailed Description

Member Variable Documentation

int NativeTexture::layout

Specifies the current image layout for APIs like Vulkan.

For Vulkan, layout contains a VkImageLayout value.

const void *NativeTexture::object

This variable holds a pointer to the native object handle.

With OpenGL, the native handle is a GLuint value, so object is then a pointer to a GLuint. With Vulkan, the native handle is a VkImage, so object is a pointer to a VkImage. With Direct3D 11 and Metal object is a pointer to a ID3D11Texture2D or MTLTexture pointer, respectively.

Note: Pay attention to the fact that object is always a pointer to the native texture handle type, even if the native type itself is a pointer.

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