QRhiSwapChainRenderTarget Class

交换链渲染目标资源。更多

头文件: #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
继承: QRhiRenderTarget

公共函数

QRhiSwapChain *swapChain() const

重新实现的公共函数

virtual QRhiResource::Type resourceType() const override

详细说明

当以交换链的颜色缓冲区为目标时,活动渲染目标是 QRhiSwapChainRenderTarget。这就是QRhiSwapChain::currentFrameRenderTarget() 返回的内容。

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

另请参阅 QRhiSwapChain

成员函数文档

[override virtual] QRhiResource::Type QRhiSwapChainRenderTarget::resourceType() const

重实现:QRhiResource::resourceType() 常量。

返回资源类型。

QRhiSwapChain *QRhiSwapChainRenderTarget::swapChain() const

返回 swapchain 对象。

© 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.