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.