QRhiReadbackResult Struct
描述了潜在异步缓冲区或纹理回读操作的结果。更多内容...
| 头文件: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| 自: | Qt 6.6 |
公共变量
详细说明
当设置completed 时,在data 可用时将调用该函数。format 和pixelSize 将在执行完成后与data 一同被设置。
注意:这是一个 兼容性保证有限的 RHI API,详情请参阅QRhi 。
成员变量文档
std::function<void ()> QRhiReadbackResult::completed
在QRhi 运行的线程上,该回调函数将在操作完成后被调用。可将其保留为nullptr ,此时不会调用任何回调函数。
QByteArray QRhiReadbackResult::data
缓冲区或图像数据。
另请参阅 QRhiResourceUpdateBatch::readBackTexture() 和QRhiResourceUpdateBatch::readBackBuffer()。
QRhiTexture::Format QRhiReadbackResult::format
仅适用于纹理,即纹理格式。
QSize QRhiReadbackResult::pixelSize
仅适用于纹理,单位为像素。
© 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.