Describes the results of a potentially asynchronous buffer or texture readback operation. 更多...
| 头: |
#include <rhi/qrhi.h>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
|
| qmake: |
QT += gui-private
|
| Since: | Qt 6.6 |
| std::function<void ()> | completed |
| QByteArray | data |
| QRhiTexture::Format | format |
| QSize | pixelSize |
当 completed is set, the function is invoked when the data 可用。 format and pixelSize are set upon completion together with data .
注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。
Callback that is invoked upon completion, on the thread the
QRhi
operates on. Can be left set to
nullptr
, in which case no callback is invoked.
The buffer or image data.
另请参阅 QRhiResourceUpdateBatch::readBackTexture () 和 QRhiResourceUpdateBatch::readBackBuffer ().
Valid only for textures, the texture format.
Valid only for textures, the size in pixels.