QRhiReadbackResult Struct
Descrive i risultati di un'operazione di lettura da buffer o da texture potenzialmente asincrona. Per saperne di più...
| Intestazione: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| A partire da: | Qt 6.6 |
Variabili pubbliche
Descrizione dettagliata
Quando è impostato " completed ", la funzione viene richiamata quando " data " è disponibile. " format " e " pixelSize " vengono impostati al completamento insieme a " data".
Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.
Documentazione sulle variabili membro
std::function<void ()> QRhiReadbackResult::completed
Callback che viene richiamato al termine dell'operazione, sul thread su cui opera l'QRhi. Può essere lasciato impostato su nullptr; in tal caso, non viene richiamato alcun callback.
QByteArray QRhiReadbackResult::data
I dati di buffer o di immagine.
Vedi anche QRhiResourceUpdateBatch::readBackTexture() e QRhiResourceUpdateBatch::readBackBuffer().
QRhiTexture::Format QRhiReadbackResult::format
Valido solo per le texture, il formato delle texture.
QSize QRhiReadbackResult::pixelSize
Valido solo per le texture: la dimensione in pixel.
© 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.