QRhiMetalCommandBufferNativeHandles Struct
保存支持QRhiCommandBuffer 的 MTLCommandBuffer 和 MTLRenderCommandEncoder 对象 ... 更多...
头文件: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
自 | Qt 6.6 |
继承: | QRhiNativeHandles |
公共变量
MTLCommandBuffer * | commandBuffer |
MTLRenderCommandEncoder * | encoder |
详细说明
注意: 命令缓冲区对象仅在录制帧时有效,即在beginFrame() -endFrame() 或beginOffscreenFrame() -endOffsrceenFrame() 对之间有效。
注: 命令编码器仅在记录一个段落时有效,即在QRhiCommandBuffer::beginPass() -QRhiCommandBuffer::endPass() 之间。
注: 这是一个 RHI API,具有有限的兼容性保证,详情请参见QRhi 。
© 2025 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.