En esta página

QRhiReadbackResult Struct

Describe los resultados de una operación potencialmente asíncrona de lectura de búfer o textura. Más...

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

Variables Públicas

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

Descripción detallada

Cuando completed está establecido, la función se invoca cuando data está disponible. format y pixelSize se establecen al finalizar junto con data.

Nota: Se trata de una API RHI con garantías de compatibilidad limitadas, véase QRhi para más detalles.

Documentación de variables miembro

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

Llamada de retorno que se invoca al finalizar, en el subproceso en el que opera QRhi. Puede dejarse establecido en nullptr, en cuyo caso no se invoca ninguna llamada de retorno.

QByteArray QRhiReadbackResult::data

El búfer o los datos de la imagen.

Véase también QRhiResourceUpdateBatch::readBackTexture() y QRhiResourceUpdateBatch::readBackBuffer().

QRhiTexture::Format QRhiReadbackResult::format

Válido sólo para texturas, el formato de textura.

QSize QRhiReadbackResult::pixelSize

Válido sólo para texturas, el tamaño en píxeles.

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