QRhiReadbackResult Struct
잠재적인 비동기 버퍼 또는 텍스처 읽기백 작업의 결과를 설명합니다. 더 보기...
Header: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
이후: | Qt 6.6 |
공용 변수
자세한 설명
completed 가 설정되면 data 을 사용할 수 있을 때 함수가 호출됩니다. format 및 pixelSize 은 data 과 함께 설정됩니다.
참고: 이 함수는 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QRhi 을 참조하세요.
멤버 변수 문서
std::function<void ()> QRhiReadbackResult::completed
완료 시 호출되는 콜백으로, QRhi 이 작동하는 스레드에서 호출됩니다. nullptr
로 설정할 수 있으며, 이 경우 콜백이 호출되지 않습니다.
QByteArray QRhiReadbackResult::data
버퍼 또는 이미지 데이터입니다.
QRhiResourceUpdateBatch::readBackTexture() 및 QRhiResourceUpdateBatch::readBackBuffer()도 참조하세요 .
QRhiTexture::Format QRhiReadbackResult::format
텍스처 형식인 텍스처에만 유효합니다.
QSize QRhiReadbackResult::pixelSize
텍스처에만 유효하며, 픽셀 단위의 크기입니다.
© 2025 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.