NativeTexture Struct

struct QRhiTexture ::NativeTexture

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

公共变量

int layout
quint64 对象

详细描述

成员变量文档编制

int NativeTexture:: layout

Specifies the current image layout for APIs like Vulkan.

For Vulkan, layout 包含 VkImageLayout 值。

quint64 NativeTexture:: 对象

64-bit integer containing the native object handle.

With OpenGL, the native handle is a GLuint value, so 对象 can then be cast to a GLuint. With Vulkan, the native handle is a VkImage, so 对象 can be cast to a VkImage. With Direct3D 11 and Metal 对象 contains a ID3D11Texture2D or MTLTexture pointer, respectively. With Direct3D 12 对象 contains a ID3D12Resource pointer.