![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrhimetal_p.h>
Public Member Functions | |
QMetalSwapChainRenderTarget (QRhiImplementation *rhi, QRhiSwapChain *swapchain) | |
~QMetalSwapChainRenderTarget () | |
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 |
![]() | |
QRhiRenderPassDescriptor * | renderPassDescriptor () const |
void | setRenderPassDescriptor (QRhiRenderPassDescriptor *desc) |
Sets the QRhiRenderPassDescriptor desc for use with this render target. | |
![]() | |
virtual | ~QRhiResource () |
Destructor. | |
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 | |
QMetalRenderTargetData * | d |
Definition at line 148 of file qrhimetal_p.h.
QMetalSwapChainRenderTarget::QMetalSwapChainRenderTarget | ( | QRhiImplementation * | rhi, |
QRhiSwapChain * | swapchain ) |
Definition at line 4272 of file qrhimetal.mm.
QMetalSwapChainRenderTarget::~QMetalSwapChainRenderTarget | ( | ) |
Definition at line 4278 of file qrhimetal.mm.
|
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 4284 of file qrhimetal.mm.
|
overridevirtual |
Implements QRhiRenderTarget.
Definition at line 4294 of file qrhimetal.mm.
|
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 4289 of file qrhimetal.mm.
|
overridevirtual |
Implements QRhiRenderTarget.
Definition at line 4299 of file qrhimetal.mm.
QMetalRenderTargetData* QMetalSwapChainRenderTarget::d |
Definition at line 158 of file qrhimetal_p.h.