En esta página

QRhiReadbackResult Struct

Describe los resultados de una operación de lectura de un búfer o una textura que puede ser asíncrona. Más información...

Encabezado: #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 se establece ` completed `, la función se invoca cuando el ` data ` está disponible. ` format ` y ` pixelSize ` se establecen al finalizar, junto con ` data`.

Nota: Se trata de una API de RHI con garantías de compatibilidad limitadas; consulta QRhi para obtener más detalles.

Documentación de las variables de miembro

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

Función de devolución de llamada que se ejecuta al finalizar la operación, en el hilo en el que opera ` QRhi `. Se puede dejar establecida en ` nullptr`, en cuyo caso no se ejecuta ninguna función de devolución de llamada.

QByteArray QRhiReadbackResult::data

Los datos del búfer o de la imagen.

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

QRhiTexture::Format QRhiReadbackResult::format

Válido únicamente para texturas, el formato de textura.

QSize QRhiReadbackResult::pixelSize

Válido únicamente 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.