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

(89ca37fb914c6539334df62b38ea8cee80dade9d)

#include <QtQuick3DRuntimeRender/private/qssgrenderlayer_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendershadowmap_p.h>
#include <QtQuick3DRuntimeRender/private/qssglayerrenderdata_p.h>
#include "qssgrendercontextcore.h"
+ Include dependency graph for qssgrendershadowmap.cpp:

Go to the source code of this file.

Functions

static QRhiTextureallocateRhiShadowTexture (QRhi *rhi, QRhiTexture::Format format, const QSize &size, QRhiTexture::Flags flags={})
 
static QRhiRenderBufferallocateRhiShadowRenderBuffer (QRhi *rhi, QRhiRenderBuffer::Type type, const QSize &size)
 
static void setupForRhiDepthCube (QRhi *rhi, QSSGShadowMapEntry *entry, const QSize &size, QRhiTexture::Format format)
 
static void setupForRhiDepth (QRhi *rhi, QSSGShadowMapEntry *entry, const QSize &size, QRhiTexture::Format format)
 

Function Documentation

◆ allocateRhiShadowRenderBuffer()

static QRhiRenderBuffer * allocateRhiShadowRenderBuffer ( QRhi * rhi,
QRhiRenderBuffer::Type type,
const QSize & size )
static

Definition at line 41 of file qssgrendershadowmap.cpp.

References QRhi::newRenderBuffer(), and qWarning.

Referenced by QSSGRenderShadowMap::addShadowMapEntry(), setupForRhiDepth(), and setupForRhiDepthCube().

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

◆ allocateRhiShadowTexture()

static QRhiTexture * allocateRhiShadowTexture ( QRhi * rhi,
QRhiTexture::Format format,
const QSize & size,
QRhiTexture::Flags flags = {} )
static

Definition at line 30 of file qssgrendershadowmap.cpp.

Referenced by QSSGRenderShadowMap::addShadowMapEntry(), setupForRhiDepth(), and setupForRhiDepthCube().

+ Here is the caller graph for this function:

◆ setupForRhiDepth()

static void setupForRhiDepth ( QRhi * rhi,
QSSGShadowMapEntry * entry,
const QSize & size,
QRhiTexture::Format format )
inlinestatic

Definition at line 61 of file qssgrendershadowmap.cpp.

References allocateRhiShadowRenderBuffer(), allocateRhiShadowTexture(), QRhiRenderBuffer::DepthStencil, and QRhiTexture::RenderTarget.

Referenced by QSSGRenderShadowMap::addShadowMapEntry().

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

◆ setupForRhiDepthCube()

static void setupForRhiDepthCube ( QRhi * rhi,
QSSGShadowMapEntry * entry,
const QSize & size,
QRhiTexture::Format format )
inlinestatic

Definition at line 51 of file qssgrendershadowmap.cpp.

References allocateRhiShadowRenderBuffer(), allocateRhiShadowTexture(), QRhiTexture::CubeMap, QRhiRenderBuffer::DepthStencil, and QRhiTexture::RenderTarget.

Referenced by QSSGRenderShadowMap::addShadowMapEntry().

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