本页内容

QRhiMetalCommandBufferNativeHandles Struct

保存支持QRhiCommandBuffer 的MTLCommandBuffer和MTLRenderCommandEncoder对象。更多内容...

头文件: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
自: Qt 6.6
继承自: QRhiNativeHandles

公共变量

MTLCommandBuffer *commandBuffer
MTLRenderCommandEncoder *encoder

详细说明

注意: 仅在录制帧期间,即在beginFrame() -endFrame()或beginOffscreenFrame() -endOffscreenFrame()这对函数之间,才保证命令缓冲区对象 有效。

注意: 命令编码器仅在录制一个通过期间有效,即在QRhiCommandBuffer::beginPass() -QRhiCommandBuffer::endPass() 之间。

注意:这是一个 兼容性保证有限的 RHI API,详情请参阅QRhi 。

成员变量文档

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.