Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRhiSwapChainRenderTarget Class Reference

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h More...

#include <qrhi.h>

Inheritance diagram for QRhiSwapChainRenderTarget:
Collaboration diagram for QRhiSwapChainRenderTarget:

Public Member Functions

QRhiResource::Type resourceType () const override
QRhiSwapChainswapChain () const
Public Member Functions inherited from QRhiRenderTarget
virtual QSize pixelSize () const =0
virtual float devicePixelRatio () const =0
virtual int sampleCount () const =0
QRhiRenderPassDescriptorrenderPassDescriptor () const
void setRenderPassDescriptor (QRhiRenderPassDescriptor *desc)
 Sets the QRhiRenderPassDescriptor desc for use with this render target.
Public Member Functions inherited from QRhiResource
virtual ~QRhiResource ()
 Destructor.
virtual void destroy ()=0
 Releases (or requests deferred releasing of) the underlying native graphics resources.
void deleteLater ()
 When called without a frame being recorded, this function is equivalent to deleting the object.
QByteArray name () const
void setName (const QByteArray &name)
 Sets a name for the object.
quint64 globalResourceId () const
QRhirhi () const

Protected Member Functions

 QRhiSwapChainRenderTarget (QRhiImplementation *rhi, QRhiSwapChain *swapchain_)
Protected Member Functions inherited from QRhiRenderTarget
 QRhiRenderTarget (QRhiImplementation *rhi)
Protected Member Functions inherited from QRhiResource
 QRhiResource (QRhiImplementation *rhi)

Protected Attributes

QRhiSwapChainm_swapchain
Protected Attributes inherited from QRhiRenderTarget
QRhiRenderPassDescriptorm_renderPassDesc = nullptr
Protected Attributes inherited from QRhiResource
QRhiImplementationm_rhi = nullptr
quint64 m_id
QByteArray m_objectName

Additional Inherited Members

Public Types inherited from QRhiResource
enum  Type {
  Buffer , Texture , Sampler , RenderBuffer ,
  RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings ,
  GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer ,
  ShadingRateMap
}
 Specifies type of the resource. More...

Detailed Description

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h

Since
6.6

Swapchain render target resource.

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 \l QRhi for details.
See also
QRhiSwapChain

Definition at line 1211 of file qrhi.h.

Constructor & Destructor Documentation

◆ QRhiSwapChainRenderTarget()

QRhiSwapChainRenderTarget::QRhiSwapChainRenderTarget ( QRhiImplementation * rhi,
QRhiSwapChain * swapchain_ )
protected

Definition at line 5351 of file qrhi.cpp.

Member Function Documentation

◆ resourceType()

QRhiResource::Type QRhiSwapChainRenderTarget::resourceType ( ) const
overridevirtual
Returns
the resource type.

Implements QRhiResource.

Definition at line 5377 of file qrhi.cpp.

◆ swapChain()

QRhiSwapChain * QRhiSwapChainRenderTarget::swapChain ( ) const
inline
Returns
the swapchain object.

Definition at line 1215 of file qrhi.h.

Member Data Documentation

◆ m_swapchain

QRhiSwapChain* QRhiSwapChainRenderTarget::m_swapchain
protected

Definition at line 1219 of file qrhi.h.


The documentation for this class was generated from the following files: