![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrendershadowmap_p.h>
Public Member Functions | |
QSSGRenderShadowMap (const QSSGRenderContextInterface &inContext) | |
~QSSGRenderShadowMap () | |
void | releaseCachedResources () |
void | addShadowMapEntry (qint32 lightIdx, qint32 width, qint32 height, ShadowMapModes mode, const QString &renderNodeObjName) |
QSSGShadowMapEntry * | shadowMapEntry (int lightIdx) |
qint32 | shadowMapEntryCount () |
Public Attributes | |
const QSSGRenderContextInterface & | m_context |
Definition at line 78 of file qssgrendershadowmap_p.h.
|
explicit |
Definition at line 12 of file qssgrendershadowmap.cpp.
QSSGRenderShadowMap::~QSSGRenderShadowMap | ( | ) |
Definition at line 17 of file qssgrendershadowmap.cpp.
References releaseCachedResources().
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().
void QSSGRenderShadowMap::releaseCachedResources | ( | ) |
Definition at line 22 of file qssgrendershadowmap.cpp.
References QList< T >::clear().
Referenced by ~QSSGRenderShadowMap().
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().
|
inline |
Definition at line 98 of file qssgrendershadowmap_p.h.
const QSSGRenderContextInterface& QSSGRenderShadowMap::m_context |
Definition at line 84 of file qssgrendershadowmap_p.h.
Referenced by addShadowMapEntry().