QRhiReadbackResult Struct

非同期バッファまたはテクスチャの読み取り操作の結果を記述します。詳細...

ヘッダー #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
以来:Qt 6.6

パブリック変数

std::function<void ()> completed
QByteArray data
QRhiTexture::Format format
QSize pixelSize

詳細説明

completed がセットされると、data が利用可能になったときにこの関数が呼び出されます。formatpixelSize は、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

テクスチャに対してのみ有効で、ピクセル単位のサイズ。

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