From c4790309ec46ae2f4f7c49eb50699a950ee7a9a4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 20 Feb 2022 14:37:41 -0800 Subject: gfx: defer downstream shader compilation until draw/dispatch. (#2139) Co-authored-by: Yong He --- tools/gfx/renderer-shared.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gfx/renderer-shared.cpp') 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(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(specializedProgram.get()); SLANG_RETURN_ON_FAIL(createRayTracingPipelineState( - pipelineDesc, specializedPipelineComPtr.writeRef())); + pipelineDesc.get(), specializedPipelineComPtr.writeRef())); break; } default: -- cgit v1.2.3