NativeTexture Struct

struct QSGTexture ::NativeTexture

Contains information about the underlying native resources of a texture. 更多...

This struct was introduced in Qt 5.15.

公共變量

int layout
const void * object

詳細描述

成員變量文檔編製

int NativeTexture:: layout

Specifies the current image layout for APIs like Vulkan.

For Vulkan, layout 包含 VkImageLayout 值。

const void *NativeTexture:: object

This variable holds a pointer to the native object handle.

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

注意: 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.