QRhiMetalCommandBufferNativeHandles Struct

Holds the MTLCommandBuffer and MTLRenderCommandEncoder objects that are backing a QRhiCommandBuffer . 更多...

头: #include <QRhiMetalCommandBufferNativeHandles>
Since: Qt 6.6
继承: QRhiNativeHandles

公共变量

MTLCommandBuffer * commandBuffer
MTLRenderCommandEncoder * encoder

详细描述

注意: The command buffer object is only guaranteed to be valid while recording a frame, that is, between a beginFrame () - endFrame () 或 beginOffscreenFrame () - endOffsrceenFrame () pair.

注意: The command encoder is only valid while recording a pass, that is, between QRhiCommandBuffer::beginPass () - QRhiCommandBuffer::endPass ().

注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。

成员变量文档编制

MTLCommandBuffer *QRhiMetalCommandBufferNativeHandles:: commandBuffer

MTLRenderCommandEncoder *QRhiMetalCommandBufferNativeHandles:: encoder