![]() |
Qt 6.x
The Qt SDK
|
#include <qrhid3d11_p.h>
Public Member Functions | |
QD3D11SwapChainRenderTarget (QRhiImplementation *rhi, QRhiSwapChain *swapchain) | |
~QD3D11SwapChainRenderTarget () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
QSize | pixelSize () const override |
float | devicePixelRatio () const override |
int | sampleCount () const override |
![]() | |
QRhiResource::Type | resourceType () const override |
QRhiSwapChain * | swapChain () const |
![]() | |
virtual QSize | pixelSize () const =0 |
virtual float | devicePixelRatio () const =0 |
virtual int | sampleCount () const =0 |
QRhiRenderPassDescriptor * | renderPassDescriptor () const |
void | setRenderPassDescriptor (QRhiRenderPassDescriptor *desc) |
Sets the QRhiRenderPassDescriptor desc for use with this render target. | |
![]() | |
virtual | ~QRhiResource () |
Destructor. | |
virtual Type | resourceType () const =0 |
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 |
QRhi * | rhi () const |
Public Attributes | |
QD3D11RenderTargetData | d |
Additional Inherited Members | |
![]() | |
enum | Type { Buffer , Texture , Sampler , RenderBuffer , RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings , GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer } |
Specifies type of the resource. More... | |
![]() | |
QRhiSwapChainRenderTarget (QRhiImplementation *rhi, QRhiSwapChain *swapchain_) | |
![]() | |
QRhiRenderTarget (QRhiImplementation *rhi) | |
![]() | |
QRhiResource (QRhiImplementation *rhi) | |
![]() | |
QRhiSwapChain * | m_swapchain |
![]() | |
QRhiRenderPassDescriptor * | m_renderPassDesc = nullptr |
![]() | |
QRhiImplementation * | m_rhi = nullptr |
quint64 | m_id |
QByteArray | m_objectName |
Definition at line 149 of file qrhid3d11_p.h.
QD3D11SwapChainRenderTarget::QD3D11SwapChainRenderTarget | ( | QRhiImplementation * | rhi, |
QRhiSwapChain * | swapchain | ||
) |
Definition at line 3664 of file qrhid3d11.cpp.
QD3D11SwapChainRenderTarget::~QD3D11SwapChainRenderTarget | ( | ) |
Definition at line 3670 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Releases (or requests deferred releasing of) the underlying native graphics resources.
Safe to call multiple times, subsequent invocations will be a no-op then.
Once destroy() is called, the QRhiResource instance can be reused, by calling create()
again. That will then result in creating new native graphics resources underneath.
The QRhiResource destructor also performs the same task, so calling this function is not necessary before deleting a QRhiResource.
Implements QRhiResource.
Definition at line 3675 of file qrhid3d11.cpp.
Referenced by ~QD3D11SwapChainRenderTarget().
|
overridevirtual |
Implements QRhiRenderTarget.
Definition at line 3685 of file qrhid3d11.cpp.
References d, and QD3D11RenderTargetData::dpr.
|
overridevirtual |
Valid only after create() has been called successfully. Until then the result is a default-constructed QSize.
With QRhiTextureRenderTarget the returned size is the size of the associated attachments at the time of create(), in practice the size of the first color attachment, or the depth/stencil buffer if there are no color attachments. If the associated textures or renderbuffers are resized and rebuilt afterwards, then pixelSize() performs an implicit call to create() in order to rebuild the underlying data structures. This implicit check is similar to what QRhiCommandBuffer::beginPass() does, and ensures that the returned size is always up-to-date.
Implements QRhiRenderTarget.
Definition at line 3680 of file qrhid3d11.cpp.
References d, and QD3D11RenderTargetData::pixelSize.
|
overridevirtual |
Implements QRhiRenderTarget.
Definition at line 3690 of file qrhid3d11.cpp.
References d, and QD3D11RenderTargetData::sampleCount.
QD3D11RenderTargetData QD3D11SwapChainRenderTarget::d |
Definition at line 159 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::beginFrame(), QD3D11SwapChain::createOrResize(), devicePixelRatio(), pixelSize(), and sampleCount().