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
qquickrendertarget.cpp File Reference

(8e45b822d4e880f4625da542abb1cc016b1ab2e4)

#include "qquickrendertarget_p.h"
#include <rhi/qrhi.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquickwindow_p.h>
#include <QtQuick/private/qsgrhisupport_p.h>
+ Include dependency graph for qquickrendertarget.cpp:

Go to the source code of this file.

Functions

static bool createRhiRenderTargetWithRenderBuffer (QRhiRenderBuffer *renderBuffer, const QSize &pixelSize, int sampleCount, QRhi *rhi, QQuickWindowRenderTarget *dst)
 
static bool createRhiRenderTarget (QRhiTexture *texture, const QSize &pixelSize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)
 
static bool createRhiRenderTargetWithDepthTexture (QRhiTexture *texture, QRhiTexture *depthTexture, const QSize &pixelSize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)
 
static bool createRhiRenderTargetMultiView (QRhiTexture *texture, QRhiTexture *maybeCustomDepthTexture, const QSize &pixelSize, int arraySize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)
 

Function Documentation

◆ createRhiRenderTarget()

static bool createRhiRenderTarget ( QRhiTexture * texture,
const QSize & pixelSize,
int sampleCount,
bool multisampleResolve,
QRhi * rhi,
QQuickWindowRenderTarget * dst )
static

Definition at line 1282 of file qquickrendertarget.cpp.

References QSGRhiSupport::chooseSampleCount(), QRhiRenderBuffer::DepthStencil, QRhi::newRenderBuffer(), QRhi::newTexture(), QRhi::newTextureRenderTarget(), QByteArrayLiteral, qWarning, QRhiTexture::RenderTarget, QRhiColorAttachment::setTexture(), and QRhiTexture::sRGB.

Referenced by QQuickRenderTargetPrivate::resolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRhiRenderTargetMultiView()

static bool createRhiRenderTargetMultiView ( QRhiTexture * texture,
QRhiTexture * maybeCustomDepthTexture,
const QSize & pixelSize,
int arraySize,
int sampleCount,
bool multisampleResolve,
QRhi * rhi,
QQuickWindowRenderTarget * dst )
static

Definition at line 1506 of file qquickrendertarget.cpp.

References QSGRhiSupport::chooseSampleCount(), QRhiTexture::D24S8, QRhiTextureRenderTarget::DoNotStoreDepthStencilContents, QSize::height(), QRhi::isFeatureSupported(), QRhi::newTextureArray(), QRhi::newTextureRenderTarget(), QByteArrayLiteral, qWarning, QRhiTexture::RenderTarget, QRhi::ResolveDepthStencil, QRhiColorAttachment::setMultiViewCount(), QRhiTexture::sRGB, and QSize::width().

Referenced by QQuickRenderTargetPrivate::resolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRhiRenderTargetWithDepthTexture()

static bool createRhiRenderTargetWithDepthTexture ( QRhiTexture * texture,
QRhiTexture * depthTexture,
const QSize & pixelSize,
int sampleCount,
bool multisampleResolve,
QRhi * rhi,
QQuickWindowRenderTarget * dst )
static

Definition at line 1377 of file qquickrendertarget.cpp.

References QSGRhiSupport::chooseSampleCount(), QRhiTexture::D24S8, QSize::height(), QRhi::isFeatureSupported(), QRhi::newTexture(), QRhi::newTextureRenderTarget(), QRhiTexture::pixelSize(), QByteArrayLiteral, qWarning, QRhiTexture::RenderTarget, QRhi::ResolveDepthStencil, QRhiTexture::sampleCount(), QRhiColorAttachment::setTexture(), QRhiTexture::sRGB, and QSize::width().

Referenced by QQuickRenderTargetPrivate::resolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRhiRenderTargetWithRenderBuffer()

static bool createRhiRenderTargetWithRenderBuffer ( QRhiRenderBuffer * renderBuffer,
const QSize & pixelSize,
int sampleCount,
QRhi * rhi,
QQuickWindowRenderTarget * dst )
static

Definition at line 1233 of file qquickrendertarget.cpp.

References QSGRhiSupport::chooseSampleCount(), QRhiRenderBuffer::DepthStencil, QRhi::newRenderBuffer(), QRhi::newTextureRenderTarget(), QByteArrayLiteral, and qWarning.

Referenced by QQuickRenderTargetPrivate::resolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: