QRhiSwapChainRenderTarget Class | Qt GUI 6.7.3
Description: Swapchain render target resource.

- Qt 6.7
- Qt GUI
- C++ Classes
- QRhiSwapChainRenderTarget
- Qt 6.7.3 Reference Documentation

# 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

- List of all members, including inherited members

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