Auf dieser Seite

QRhiReadbackResult Struct

Beschreibt die Ergebnisse eines potenziell asynchronen Puffer- oder Textur-Rücklesevorgangs. Mehr...

Header: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Seit: Qt 6.6

Öffentliche Variablen

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

Ausführliche Beschreibung

Wenn „ completed “ gesetzt ist, wird die Funktion aufgerufen, sobald „ data “ verfügbar ist. „ format “ und „ pixelSize “ werden nach Abschluss zusammen mit „ data “ gesetzt.

Hinweis: Hierbei handelt es sich um eine RHI-API mit eingeschränkten Kompatibilitätsgarantien; weitere Informationen finden Sie unter QRhi.

Dokumentation zu den Member-Variablen

std::function<void ()> QRhiReadbackResult::completed

Callback, der nach Abschluss der Ausführung in dem Thread aufgerufen wird, in dem die Funktion „ QRhi “ ausgeführt wird. Kann auf „ nullptr “ gesetzt bleiben; in diesem Fall wird kein Callback aufgerufen.

QByteArray QRhiReadbackResult::data

Die Puffer- oder Bilddaten.

Siehe auch QRhiResourceUpdateBatch::readBackTexture() und QRhiResourceUpdateBatch::readBackBuffer().

QRhiTexture::Format QRhiReadbackResult::format

Gilt nur für Texturen, das Texturformat.

QSize QRhiReadbackResult::pixelSize

Gilt nur für Texturen; die Größe in Pixeln.

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