Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRhiSwapChainRenderTarget Class Reference

\inmodule QtGui 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
}
 Specifies type of the resource. More...
 

Detailed Description

\inmodule QtGui

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 1172 of file qrhi.h.

Constructor & Destructor Documentation

◆ QRhiSwapChainRenderTarget()

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

Definition at line 5033 of file qrhi.cpp.

Member Function Documentation

◆ resourceType()

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

Implements QRhiResource.

Definition at line 5058 of file qrhi.cpp.

References QRhiResource::SwapChainRenderTarget.

◆ swapChain()

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

Definition at line 1176 of file qrhi.h.

Member Data Documentation

◆ m_swapchain

QRhiSwapChain* QRhiSwapChainRenderTarget::m_swapchain
protected

Definition at line 1180 of file qrhi.h.


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