In questa pagina

QRhiSwapChainRenderTarget Class

Risorsa di destinazione di rendering di Swapchain. Altro...

Intestazione: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
A partire da: Qt 6.6
Eredita da: QRhiRenderTarget

Funzioni pubbliche

QRhiSwapChain *swapChain() const

Funzioni pubbliche reimplementate

virtual QRhiResource::Type resourceType() const override

Descrizione dettagliata

Quando si utilizzano i buffer di colore di una swapchain, il render target attivo è un QRhiSwapChainRenderTarget. Questo è il valore restituito dalla funzione QRhiSwapChain::currentFrameRenderTarget().

Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.

Vedi anche QRhiSwapChain.

Documentazione delle funzioni membro

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

Reimplementa: ` QRhiResource::resourceType()` const.

Restituisce il tipo di risorsa.

QRhiSwapChain *QRhiSwapChainRenderTarget::swapChain() const

Restituisce l'oggetto 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.