QRhiRenderTarget Class

Represents an onscreen (swapchain) or offscreen (texture) render target. More...

Header: #include <QRhiRenderTarget>
qmake: QT += rhi
Inherits: QRhiResource
Inherited By:

QRhiTextureRenderTarget

Public Functions

virtual float devicePixelRatio() const = 0
virtual QSize pixelSize() const = 0
QRhiRenderPassDescriptor *renderPassDescriptor() const
virtual int sampleCount() const = 0
void setRenderPassDescriptor(QRhiRenderPassDescriptor *desc)

Reimplemented Public Functions

virtual QRhiResource::Type resourceType() const override

Protected Variables

QRhiRenderPassDescriptor *m_renderPassDesc

Additional Inherited Members

Detailed Description

Represents an onscreen (swapchain) or offscreen (texture) render target.

Member Type Documentation

Property Documentation

Member Function Documentation

[pure virtual] float QRhiRenderTarget::devicePixelRatio() const

Returns the device pixel ratio. For QRhiTextureRenderTarget this is always 1. For targets retrieved from a QRhiSwapChain the value reflects the device pixel ratio of the targeted QWindow.

[pure virtual] QSize QRhiRenderTarget::pixelSize() const

Returns the size in pixels.

QRhiRenderPassDescriptor *QRhiRenderTarget::renderPassDescriptor() const

See also setRenderPassDescriptor().

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

Reimplemented from QRhiResource::resourceType().

Returns the resource type.

[pure virtual] int QRhiRenderTarget::sampleCount() const

void QRhiRenderTarget::setRenderPassDescriptor(QRhiRenderPassDescriptor *desc)

See also renderPassDescriptor().

Member Variable Documentation

Related Non-Members

Macro Documentation