Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QSSGRenderShadowMap Class Reference

#include <qssgrendershadowmap_p.h>

+ Collaboration diagram for QSSGRenderShadowMap:

Public Member Functions

 QSSGRenderShadowMap (const QSSGRenderContextInterface &inContext)
 
 ~QSSGRenderShadowMap ()
 
void releaseCachedResources ()
 
void addShadowMapEntry (qint32 lightIdx, qint32 width, qint32 height, ShadowMapModes mode, const QString &renderNodeObjName)
 
QSSGShadowMapEntryshadowMapEntry (int lightIdx)
 
qint32 shadowMapEntryCount ()
 

Public Attributes

const QSSGRenderContextInterfacem_context
 

Detailed Description

Definition at line 78 of file qssgrendershadowmap_p.h.

Constructor & Destructor Documentation

◆ QSSGRenderShadowMap()

QT_BEGIN_NAMESPACE QSSGRenderShadowMap::QSSGRenderShadowMap ( const QSSGRenderContextInterface inContext)
explicit

Definition at line 12 of file qssgrendershadowmap.cpp.

◆ ~QSSGRenderShadowMap()

QSSGRenderShadowMap::~QSSGRenderShadowMap ( )

Definition at line 17 of file qssgrendershadowmap.cpp.

References releaseCachedResources().

+ Here is the call graph for this function:

Member Function Documentation

◆ addShadowMapEntry()

void QSSGRenderShadowMap::addShadowMapEntry ( qint32  lightIdx,
qint32  width,
qint32  height,
ShadowMapModes  mode,
const QString renderNodeObjName 
)

Definition at line 71 of file qssgrendershadowmap.cpp.

References allocateRhiShadowRenderBuffer(), allocateRhiShadowTexture(), QList< T >::back(), QRhiTextureRenderTarget::create(), CUBE, QRhiTexture::CubeMap, QRhiRenderBuffer::DepthStencil, QSSGShadowMapEntry::destroyRhiResources(), QSSGBaseTypeHelpers::displayName(), i, QVarLengthArray< T, Prealloc >::isEmpty(), QRhi::isTextureFormatSupported(), m_context, QSSGShadowMapEntry::m_lightIndex, QSSGShadowMapEntry::m_rhiBlurRenderPassDesc, QSSGShadowMapEntry::m_rhiBlurRenderTarget0, QSSGShadowMapEntry::m_rhiBlurRenderTarget1, QSSGShadowMapEntry::m_rhiCubeCopy, QSSGShadowMapEntry::m_rhiDepthCopy, QSSGShadowMapEntry::m_rhiDepthCube, QSSGShadowMapEntry::m_rhiDepthMap, QSSGShadowMapEntry::m_rhiDepthStencil, QSSGShadowMapEntry::m_rhiRenderPassDesc, QSSGShadowMapEntry::m_rhiRenderTargets, QSSGShadowMapEntry::m_shadowMapMode, QRhi::MaxColorAttachments, QRhiTextureRenderTarget::newCompatibleRenderPassDescriptor(), QRhi::newTextureRenderTarget(), QRhiTexture::pixelSize(), QList< T >::push_back(), Q_ASSERT, QByteArrayLiteral, QSSGRenderTextureCubeFaces, qWarning, QRhiTexture::R16, QRhiTexture::R16F, QRhiTexture::RenderTarget, QVarLengthArray< T, Prealloc >::resize(), QRhi::resourceLimit(), QSSGRenderContextInterface::rhiContext(), QRhiTextureRenderTargetDescription::setColorAttachments(), QRhiTextureRenderTargetDescription::setDepthStencilBuffer(), QRhiTextureRenderTarget::setDescription(), QRhiColorAttachment::setLayer(), QRhiResource::setName(), QRhiRenderTarget::setRenderPassDescriptor(), QRhiColorAttachment::setTexture(), setupForRhiDepth(), setupForRhiDepthCube(), shadowMapEntry(), QVLABaseBase::size(), QString::toLatin1(), VSM, QSSGShadowMapEntry::withRhiDepthCubeMap(), and QSSGShadowMapEntry::withRhiDepthMap().

+ Here is the call graph for this function:

◆ releaseCachedResources()

void QSSGRenderShadowMap::releaseCachedResources ( )

Definition at line 22 of file qssgrendershadowmap.cpp.

References QList< T >::clear().

Referenced by ~QSSGRenderShadowMap().

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

◆ shadowMapEntry()

QSSGShadowMapEntry * QSSGRenderShadowMap::shadowMapEntry ( int  lightIdx)

Definition at line 251 of file qssgrendershadowmap.cpp.

References i, QSSGShadowMapEntry::m_lightIndex, Q_ASSERT, and QList< T >::size().

Referenced by addShadowMapEntry(), RenderHelpers::rhiRenderShadowMap(), and QSSGMaterialShaderGenerator::setRhiMaterialProperties().

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

◆ shadowMapEntryCount()

qint32 QSSGRenderShadowMap::shadowMapEntryCount ( )
inline

Definition at line 98 of file qssgrendershadowmap_p.h.

Member Data Documentation

◆ m_context

const QSSGRenderContextInterface& QSSGRenderShadowMap::m_context

Definition at line 84 of file qssgrendershadowmap_p.h.

Referenced by addShadowMapEntry().


The documentation for this class was generated from the following files: