En esta página

QRhiMetalCommandBufferNativeHandles Struct

Contiene los objetos MTLCommandBuffer y MTLRenderCommandEncoder que respaldan un QRhiCommandBuffer. 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
Hereda: QRhiNativeHandles

Variables Públicas

MTLCommandBuffer *commandBuffer
MTLRenderCommandEncoder *encoder

Descripción detallada

Nota: El objeto buffer de comandos sólo se garantiza que sea válido mientras se graba un frame, es decir, entre un par beginFrame() - endFrame() o beginOffscreenFrame() - endOffsrceenFrame().

Nota: El codificador de comandos sólo es válido mientras se graba un pase, es decir, entre QRhiCommandBuffer::beginPass() - QRhiCommandBuffer::endPass().

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

Documentación de variables miembro

MTLCommandBuffer *QRhiMetalCommandBufferNativeHandles::commandBuffer

MTLRenderCommandEncoder *QRhiMetalCommandBufferNativeHandles::encoder

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