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>.
|
#include <qssgrhicontext_p.h>
Public Types | |
using | Textures = QSet<QRhiTexture *> |
using | Meshes = QSet<QSSGRenderMesh *> |
Static Public Member Functions | |
static QSSGRhiContextPrivate * | get (QSSGRhiContext *q) |
static const QSSGRhiContextPrivate * | get (const QSSGRhiContext *q) |
static bool | shaderDebuggingEnabled () |
static bool | editorMode () |
Definition at line 860 of file qssgrhicontext_p.h.
using QSSGRhiContextPrivate::Meshes = QSet<QSSGRenderMesh *> |
Definition at line 872 of file qssgrhicontext_p.h.
using QSSGRhiContextPrivate::Textures = QSet<QRhiTexture *> |
Definition at line 871 of file qssgrhicontext_p.h.
void QSSGRhiContextPrivate::cleanupDrawCallData | ( | const QSSGRenderModel * | model | ) |
Definition at line 1348 of file qssgrhicontext.cpp.
References QHash< Key, T >::begin(), QHash< Key, T >::end(), QHash< Key, T >::erase(), it, m_drawCallData, model, and releaseDrawCallData().
QRhiComputePipeline * QSSGRhiContextPrivate::computePipeline | ( | const QShader & | shader, |
QRhiShaderResourceBindings * | srb ) |
Definition at line 1230 of file qssgrhicontext.cpp.
References computePipeline(), QSSGComputePipelineStateKey::create(), and srb().
Referenced by computePipeline(), and computePipeline().
QRhiComputePipeline * QSSGRhiContextPrivate::computePipeline | ( | const QSSGComputePipelineStateKey & | key, |
QRhiShaderResourceBindings * | srb ) |
Definition at line 1669 of file qssgrhicontext.cpp.
References QRhiShaderStage::Compute, computePipeline(), QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), QRhiComputePipeline::create(), QHash< Key, T >::insert(), it, m_computePipelines, m_rhi, QRhi::newComputePipeline(), qWarning, QRhiComputePipeline::setShaderResourceBindings(), QRhiComputePipeline::setShaderStage(), and srb().
QSSGRhiDrawCallData & QSSGRhiContextPrivate::drawCallData | ( | const QSSGRhiDrawCallDataKey & | key | ) |
Definition at line 1236 of file qssgrhicontext.cpp.
References m_drawCallData.
|
static |
Definition at line 1595 of file qssgrhicontext.cpp.
References qEnvironmentVariableIntValue().
Referenced by QSSGShaderCache::QSSGShaderCache(), QSSGShaderCache::compileForRhi(), QSSGShaderCache::newPipelineFromPregenerated(), and QSSGShaderCache::tryNewPipelineFromPersistentCache().
|
inlinestatic |
Definition at line 875 of file qssgrhicontext_p.h.
|
inlinestatic |
Definition at line 874 of file qssgrhicontext_p.h.
Referenced by cleanupResourcesImpl(), QSSGBufferManager::cleanupUnreferencedBuffers(), QSSGRhiContextStats::get(), QSSGRhiContextStats::get(), QSSGLayerRenderData::prepareInstancing(), QSSGParticleRenderer::prepareParticlesForModel(), QSSGRhiCubeRenderer::recordRenderCube(), QSSGDebugDrawSystem::recordRenderDebugObjects(), QSSGRhiQuadRenderer::recordRenderQuad(), QSSGBufferManager::releaseGeometry(), QSSGBufferManager::releaseTextureData(), DebugDrawPass::renderPass(), DebugDrawPass::renderPrep(), renderToKTXFileInternal(), QQuick3DSceneRenderer::renderToRhiTexture(), RenderHelpers::rhiPrepareDepthPass(), RenderHelpers::rhiPrepareGrid(), RenderHelpers::rhiPrepareRenderable(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), QSSGParticleRenderer::rhiPrepareRenderable(), rhiPrepareResourcesForShadowMap(), rhiPrepareSkyBox_helper(), RenderHelpers::rhiRenderAoTexture(), and RenderHelpers::rhiRenderShadowMap().
QSSGRhiInstanceBufferData & QSSGRhiContextPrivate::instanceBufferData | ( | const QSSGRenderModel * | model | ) |
Definition at line 1410 of file qssgrhicontext.cpp.
References m_instanceBuffersLod, and model.
QSSGRhiInstanceBufferData & QSSGRhiContextPrivate::instanceBufferData | ( | QSSGRenderInstanceTable * | instanceTable | ) |
Definition at line 1405 of file qssgrhicontext.cpp.
References m_instanceBuffers.
QSSGRhiParticleData & QSSGRhiContextPrivate::particleData | ( | const QSSGRenderGraphObject * | particlesOrModel | ) |
Definition at line 1415 of file qssgrhicontext.cpp.
References m_particleData.
Referenced by releaseCachedResources().
QRhiGraphicsPipeline * QSSGRhiContextPrivate::pipeline | ( | const QSSGGraphicsPipelineStateKey & | key, |
QRhiRenderPassDescriptor * | rpDesc, | ||
QRhiShaderResourceBindings * | srb ) |
Definition at line 1601 of file qssgrhicontext.cpp.
References QSSGRhiGraphicsPipelineState::BlendEnabled, QRhiGraphicsPipeline::CompileShadersWithDebugInfo, QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), QRhiGraphicsPipeline::create(), QSSGRhiGraphicsPipelineState::DepthTestEnabled, QSSGRhiGraphicsPipelineState::DepthWriteEnabled, QRhiGraphicsPipeline::TargetBlend::enable, QSSGRhiInputAssemblerStatePrivate::get(), QSSGRhiGraphicsPipelineStatePrivate::getShaderPipeline(), i, QHash< Key, T >::insert(), it, QRhiGraphicsPipeline::Lines, QRhiGraphicsPipeline::LineStrip, m_pipelines, m_rhi, QRhi::newGraphicsPipeline(), qEnvironmentVariableIntValue(), qWarning, QRhiGraphicsPipeline::setCullMode(), QRhiGraphicsPipeline::setDepthBias(), QRhiGraphicsPipeline::setDepthOp(), QRhiGraphicsPipeline::setDepthTest(), QRhiGraphicsPipeline::setDepthWrite(), QRhiGraphicsPipeline::setFlags(), QRhiGraphicsPipeline::setLineWidth(), QRhiGraphicsPipeline::setMultiViewCount(), QRhiGraphicsPipeline::setPolygonMode(), QRhiGraphicsPipeline::setRenderPassDescriptor(), QRhiGraphicsPipeline::setSampleCount(), QRhiGraphicsPipeline::setShaderResourceBindings(), QRhiGraphicsPipeline::setShaderStages(), QRhiGraphicsPipeline::setSlopeScaledDepthBias(), QRhiGraphicsPipeline::setStencilFront(), QRhiGraphicsPipeline::setStencilTest(), QRhiGraphicsPipeline::setStencilWriteMask(), QRhiGraphicsPipeline::setTargetBlends(), QRhiGraphicsPipeline::setTopology(), QRhiGraphicsPipeline::setVertexInputLayout(), srb(), QRhiGraphicsPipeline::UsesScissor, QSSGRhiGraphicsPipelineState::UsesScissor, QRhiGraphicsPipeline::UsesStencilRef, and QSSGRhiGraphicsPipelineState::UsesStencilRef.
QRhiGraphicsPipeline * QSSGRhiContextPrivate::pipeline | ( | const QSSGRhiGraphicsPipelineState & | ps, |
QRhiRenderPassDescriptor * | rpDesc, | ||
QRhiShaderResourceBindings * | srb ) |
Definition at line 1223 of file qssgrhicontext.cpp.
References QSSGGraphicsPipelineStateKey::create(), pipeline(), and srb().
Referenced by pipeline().
void QSSGRhiContextPrivate::registerMesh | ( | QSSGRenderMesh * | mesh | ) |
Definition at line 1331 of file qssgrhicontext.cpp.
References QSet< T >::insert(), and m_meshes.
void QSSGRhiContextPrivate::registerTexture | ( | QRhiTexture * | texture | ) |
Definition at line 1320 of file qssgrhicontext.cpp.
References QSet< T >::insert(), and m_textures.
void QSSGRhiContextPrivate::releaseCachedResources | ( | ) |
Definition at line 1145 of file qssgrhicontext.cpp.
References QHash< Key, T >::clear(), m_computePipelines, m_drawCallData, m_dummyTextures, m_instanceBuffers, m_instanceBuffersLod, m_particleData, m_pipelines, m_samplers, m_srbCache, particleData(), qDeleteAll(), and QSSGRhiParticleData::texture.
void QSSGRhiContextPrivate::releaseDrawCallData | ( | QSSGRhiDrawCallData & | dcd | ) |
Definition at line 1212 of file qssgrhicontext.cpp.
References m_srbCache, QSSG_CHECK, srb(), and QHash< Key, T >::take().
Referenced by cleanupDrawCallData().
void QSSGRhiContextPrivate::releaseMesh | ( | QSSGRenderMesh * | mesh | ) |
Definition at line 1336 of file qssgrhicontext.cpp.
References m_meshes, releaseTexture(), QSet< T >::remove(), and QSSGRenderMesh::subsets.
void QSSGRhiContextPrivate::releaseTexture | ( | QRhiTexture * | texture | ) |
Definition at line 1325 of file qssgrhicontext.cpp.
References m_textures, and QSet< T >::remove().
Referenced by releaseMesh().
void QSSGRhiContextPrivate::setCommandBuffer | ( | QRhiCommandBuffer * | cb | ) |
Definition at line 1081 of file qssgrhicontext.cpp.
void QSSGRhiContextPrivate::setMainPassSampleCount | ( | int | samples | ) |
Definition at line 1116 of file qssgrhicontext.cpp.
References m_mainSamples.
void QSSGRhiContextPrivate::setMainPassViewCount | ( | int | viewCount | ) |
Definition at line 1130 of file qssgrhicontext.cpp.
References m_mainViewCount.
void QSSGRhiContextPrivate::setMainRenderPassDescriptor | ( | QRhiRenderPassDescriptor * | rpDesc | ) |
Definition at line 1066 of file qssgrhicontext.cpp.
References m_mainRpDesc.
void QSSGRhiContextPrivate::setRenderTarget | ( | QRhiRenderTarget * | rt | ) |
Definition at line 1095 of file qssgrhicontext.cpp.
References m_rt.
|
static |
Definition at line 1589 of file qssgrhicontext.cpp.
References qEnvironmentVariableIntValue().
Referenced by QSSGShaderCache::QSSGShaderCache(), QSSGShaderCache::compileForRhi(), QSSGShaderCache::newPipelineFromPregenerated(), QSSGShaderCustomMaterialAdapter::prepareCustomShader(), and QSSGShaderCache::tryNewPipelineFromPersistentCache().
QRhiShaderResourceBindings * QSSGRhiContextPrivate::srb | ( | const QSSGRhiShaderResourceBindingList & | bindings | ) |
Definition at line 1194 of file qssgrhicontext.cpp.
References QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), QRhiShaderResourceBindings::create(), QHash< Key, T >::insert(), it, m_rhi, m_srbCache, QRhi::newShaderResourceBindings(), QSSGRhiShaderResourceBindingList::p, qWarning, QRhiShaderResourceBindings::setBindings(), srb(), and QSSGRhiShaderResourceBindingList::v.
Referenced by computePipeline(), computePipeline(), pipeline(), pipeline(), releaseDrawCallData(), and srb().
QRhiCommandBuffer* QSSGRhiContextPrivate::m_cb = nullptr |
Definition at line 924 of file qssgrhicontext_p.h.
Referenced by setCommandBuffer().
QHash<QSSGComputePipelineStateKey, QRhiComputePipeline *> QSSGRhiContextPrivate::m_computePipelines |
Definition at line 936 of file qssgrhicontext_p.h.
Referenced by computePipeline(), and releaseCachedResources().
QHash<QSSGRhiDrawCallDataKey, QSSGRhiDrawCallData> QSSGRhiContextPrivate::m_drawCallData |
Definition at line 933 of file qssgrhicontext_p.h.
Referenced by cleanupDrawCallData(), drawCallData(), and releaseCachedResources().
QHash<QSSGRhiDummyTextureKey, QRhiTexture *> QSSGRhiContextPrivate::m_dummyTextures |
Definition at line 937 of file qssgrhicontext_p.h.
Referenced by releaseCachedResources().
QHash<QSSGRenderInstanceTable *, QSSGRhiInstanceBufferData> QSSGRhiContextPrivate::m_instanceBuffers |
Definition at line 938 of file qssgrhicontext_p.h.
Referenced by instanceBufferData(), and releaseCachedResources().
QHash<const QSSGRenderModel *, QSSGRhiInstanceBufferData> QSSGRhiContextPrivate::m_instanceBuffersLod |
Definition at line 939 of file qssgrhicontext_p.h.
Referenced by instanceBufferData(), and releaseCachedResources().
QRhiRenderPassDescriptor* QSSGRhiContextPrivate::m_mainRpDesc = nullptr |
Definition at line 923 of file qssgrhicontext_p.h.
Referenced by setMainRenderPassDescriptor().
int QSSGRhiContextPrivate::m_mainSamples = 1 |
Definition at line 928 of file qssgrhicontext_p.h.
Referenced by setMainPassSampleCount().
int QSSGRhiContextPrivate::m_mainViewCount = 1 |
Definition at line 929 of file qssgrhicontext_p.h.
Referenced by setMainPassViewCount().
Meshes QSSGRhiContextPrivate::m_meshes |
Definition at line 927 of file qssgrhicontext_p.h.
Referenced by registerMesh(), and releaseMesh().
QHash<const QSSGRenderGraphObject *, QSSGRhiParticleData> QSSGRhiContextPrivate::m_particleData |
Definition at line 940 of file qssgrhicontext_p.h.
Referenced by particleData(), and releaseCachedResources().
QHash<QSSGGraphicsPipelineStateKey, QRhiGraphicsPipeline *> QSSGRhiContextPrivate::m_pipelines |
Definition at line 935 of file qssgrhicontext_p.h.
Referenced by pipeline(), and releaseCachedResources().
Definition at line 921 of file qssgrhicontext_p.h.
Referenced by computePipeline(), pipeline(), and srb().
QRhiRenderTarget* QSSGRhiContextPrivate::m_rt = nullptr |
Definition at line 925 of file qssgrhicontext_p.h.
Referenced by setRenderTarget().
QVector<QPair<QSSGRhiSamplerDescription, QRhiSampler*> > QSSGRhiContextPrivate::m_samplers |
Definition at line 931 of file qssgrhicontext_p.h.
Referenced by releaseCachedResources().
QHash<QSSGRhiShaderResourceBindingList, QRhiShaderResourceBindings *> QSSGRhiContextPrivate::m_srbCache |
Definition at line 934 of file qssgrhicontext_p.h.
Referenced by releaseCachedResources(), releaseDrawCallData(), and srb().
QSSGRhiContextStats QSSGRhiContextPrivate::m_stats |
Definition at line 941 of file qssgrhicontext_p.h.
Textures QSSGRhiContextPrivate::m_textures |
Definition at line 926 of file qssgrhicontext_p.h.
Referenced by registerTexture(), and releaseTexture().
QSSGRhiContext* QSSGRhiContextPrivate::q_ptr = nullptr |
Definition at line 920 of file qssgrhicontext_p.h.