本页内容

QRhiSwapChainRenderTarget Class

Swapchain 渲染目标资源。更多...

头文件: #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
继承自: 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() const。

返回资源类型。

QRhiSwapChain *QRhiSwapChainRenderTarget::swapChain() const

返回 swapchain 对象。

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