QRhiTexture::NativeTexture Struct

struct QRhiTexture::NativeTexture

包含纹理的底层本地资源信息。更多

公共变量

int layout
quint64 object

详细说明

成员变量文档

int NativeTexture::layout

为 Vulkan 等 API 指定当前图像布局。

对于 Vulkan,layout 包含一个VkImageLayout 值。

quint64 NativeTexture::object

包含本地对象句柄的 64 位整数。

对于 OpenGL,本机句柄是一个 GLuint 值,因此object 可以转换为 GLuint。对于 Vulkan,本地句柄是一个 VkImage,因此object 可以被转换为 VkImage。对于 Direct3D 11 和 Metal,object 分别包含一个 ID3D11Texture2D 或 MTLTexture 指针。对于 Direct3D 12,object 包含一个 ID3D12Resource 指针。

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