Sur cette page

QRhiMetalCommandBufferNativeHandles Struct

Contient les objets MTLCommandBuffer et MTLRenderCommandEncoder qui soutiennent un QRhiCommandBuffer. Plus....

En-tête : #include <rhi/qrhi.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake : QT += gui-private
Depuis : Qt 6.6
Hérite : QRhiNativeHandles

Variables publiques

MTLCommandBuffer *commandBuffer
MTLRenderCommandEncoder *encoder

Description détaillée

Remarque : la validité de l'objet tampon de commande n'est garantie que pendant l'enregistrement d'une trame, c'est-à-dire entre une paire beginFrame() - endFrame() ou beginOffscreenFrame() - endOffsrceenFrame().

Remarque : L'encodeur de commandes n'est valide que lors de l'enregistrement d'une passe, c'est-à-dire entre QRhiCommandBuffer::beginPass() et QRhiCommandBuffer::endPass().

Remarque : il s'agit d'une API RHI avec des garanties de compatibilité limitées, voir QRhi pour plus de détails.

Documentation sur les variables membres

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.