summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/shadercache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/materialsystem/shadercache.cpp')
-rw-r--r--src/render/materialsystem/shadercache.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/materialsystem/shadercache.cpp b/src/render/materialsystem/shadercache.cpp
index de3842386..4ddf26799 100644
--- a/src/render/materialsystem/shadercache.cpp
+++ b/src/render/materialsystem/shadercache.cpp
@@ -151,6 +151,11 @@ QOpenGLShaderProgram *ShaderCache::getShaderProgramForDNA(ProgramDNA dna) const
return m_programHash.value(dna, nullptr);
}
+QVector<Qt3DCore::QNodeId> ShaderCache::shaderIdsForProgram(ProgramDNA dna) const
+{
+ return m_programRefs.value(dna);
+}
+
} // namespace Render
} // namespace Qt3DRender