QRhiTexture::NativeTexture Struct
struct QRhiTexture::NativeTexture包含有关纹理底层本机资源的信息。更多...
公共变量
成员变量文档
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 指针。
© 2026 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.