QRhiSwapChainRenderTarget Class

Swapchain render target resource. 更多...

头: #include <QRhiSwapChainRenderTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.6
继承: QRhiRenderTarget

公共函数

QRhiSwapChain * swapChain () const

重实现公共函数

virtual QRhiResource::Type resourceType () const override

详细描述

When targeting the color buffers of a swapchain, active render target is a QRhiSwapChainRenderTarget. This is what QRhiSwapChain::currentFrameRenderTarget () returns.

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

另请参阅 QRhiSwapChain .

成员函数文档编制

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

重实现: QRhiResource::resourceType() const .

Returns the resource type.

QRhiSwapChain *QRhiSwapChainRenderTarget:: swapChain () const

Returns the swapchain object.