QRhiSwapChainRenderTarget Class

Swapchain render target resource. More...

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

Public Functions

QRhiSwapChain *swapChain() const

Reimplemented Public Functions

virtual QRhiResource::Type resourceType() const override

Detailed Description

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

Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.

See also QRhiSwapChain.

Member Function Documentation

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

Reimplements: QRhiResource::resourceType() const.

Returns the resource type.

QRhiSwapChain *QRhiSwapChainRenderTarget::swapChain() const

Returns the swapchain object.

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