summaryrefslogtreecommitdiff
path: root/tools/gfx/renderer-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/renderer-shared.h')
-rw-r--r--tools/gfx/renderer-shared.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h
index d1ecebfce..79c965631 100644
--- a/tools/gfx/renderer-shared.h
+++ b/tools/gfx/renderer-shared.h
@@ -271,6 +271,10 @@ public:
// pipeline cannot be used directly and must be specialized first.
bool isSpecializable = false;
ComPtr<IShaderProgram> m_program;
+ template <typename TProgram> TProgram* getProgram()
+ {
+ return static_cast<TProgram*>(m_program.get());
+ }
protected:
void initializeBase(const PipelineStateDesc& inDesc);