Nesta página

QRhiReadbackResult Struct

Descreve os resultados de uma operação de leitura de buffer ou textura potencialmente assíncrona. Mais...

Cabeçalho: #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

Variáveis públicas

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

Descrição detalhada

Quando ` completed ` é definido, a função é chamada quando ` data ` estiver disponível. ` format ` e ` pixelSize ` são definidos após a conclusão, juntamente com ` data`.

Observação: Esta é uma API RHI com garantias de compatibilidade limitadas; consulte QRhi para obter detalhes.

Documentação das variáveis de membro

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

Callback que é chamado após a conclusão, na thread em que a função ` QRhi ` é executada. Pode ser deixado definido como ` nullptr`; nesse caso, nenhum callback é chamado.

QByteArray QRhiReadbackResult::data

Os dados do buffer ou da imagem.

Veja também QRhiResourceUpdateBatch::readBackTexture() e QRhiResourceUpdateBatch::readBackBuffer().

QRhiTexture::Format QRhiReadbackResult::format

Válido apenas para texturas: o formato da textura.

QSize QRhiReadbackResult::pixelSize

Válido apenas para texturas: o tamanho em pixels.

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