QRhiMetalCommandBufferNativeHandles Struct

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

頭: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
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