QRhiReadbackResult Struct
Beschreibt die Ergebnisse einer potentiell asynchronen Puffer- oder Texturrückleseoperation. Mehr...
Kopfzeile: | #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 |
Öffentliche Variablen
Detaillierte Beschreibung
Wenn completed gesetzt ist, wird die Funktion aufgerufen, wenn data verfügbar ist. format und pixelSize werden nach Abschluss zusammen mit data gesetzt.
Hinweis: Dies ist eine RHI-API mit eingeschränkten Kompatibilitätsgarantien, siehe QRhi für Details.
Dokumentation der Mitgliedsvariablen
std::function<void ()> QRhiReadbackResult::completed
Callback, der nach Beendigung auf dem Thread aufgerufen wird, auf dem die QRhi arbeitet. Kann auf nullptr
gesetzt bleiben, in diesem Fall wird kein Callback aufgerufen.
QByteArray QRhiReadbackResult::data
Der Puffer oder die Bilddaten.
Siehe auch QRhiResourceUpdateBatch::readBackTexture() und QRhiResourceUpdateBatch::readBackBuffer().
QRhiTexture::Format QRhiReadbackResult::format
Gültig nur für Texturen, das Texturformat.
QSize QRhiReadbackResult::pixelSize
Gültig nur für Texturen, die Größe in Pixel.
© 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.