summaryrefslogtreecommitdiff
path: root/tools/gfx/renderer-shared.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-20 14:37:41 -0800
committerGitHub <noreply@github.com>2022-02-20 14:37:41 -0800
commitc4790309ec46ae2f4f7c49eb50699a950ee7a9a4 (patch)
treee89f2a4a0a8a3fee16ebde5ce5b05ceb1d473398 /tools/gfx/renderer-shared.cpp
parente272aec6a9ddb8b0af82f72c061f5393f2b2bdab (diff)
gfx: defer downstream shader compilation until draw/dispatch. (#2139)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
-rw-r--r--tools/gfx/renderer-shared.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp
index 244146ca3..92d263ed6 100644
--- a/tools/gfx/renderer-shared.cpp
+++ b/tools/gfx/renderer-shared.cpp
@@ -873,7 +873,7 @@ Result RendererBase::maybeSpecializePipeline(
case PipelineType::Graphics:
{
auto pipelineDesc = currentPipeline->desc.graphics;
- pipelineDesc.program = specializedProgram;
+ pipelineDesc.program = static_cast<ShaderProgramBase*>(specializedProgram.get());
SLANG_RETURN_ON_FAIL(createGraphicsPipelineState(
pipelineDesc, specializedPipelineComPtr.writeRef()));
break;
@@ -881,9 +881,9 @@ Result RendererBase::maybeSpecializePipeline(
case PipelineType::RayTracing:
{
auto pipelineDesc = currentPipeline->desc.rayTracing;
- pipelineDesc.program = specializedProgram;
+ pipelineDesc.program = static_cast<ShaderProgramBase*>(specializedProgram.get());
SLANG_RETURN_ON_FAIL(createRayTracingPipelineState(
- pipelineDesc, specializedPipelineComPtr.writeRef()));
+ pipelineDesc.get(), specializedPipelineComPtr.writeRef()));
break;
}
default: