File tree Expand file tree Collapse file tree
Graphics/GraphicsEngineWebGPU/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ void BuildSpecializationDataWebGPU(PipelineStateWebGPUImpl::TShaderStages& Shade
128128
129129 for (size_t StageIdx = 0 ; StageIdx < ShaderStages.size (); ++StageIdx)
130130 {
131- PipelineStateWebGPUImpl::ShaderStageInfo& Stage = ShaderStages[StageIdx];
132- const ShaderWebGPUImpl* pShader = Stage.pShader ;
133- const auto & pShaderResources = pShader->GetShaderResources ();
131+ PipelineStateWebGPUImpl::ShaderStageInfo& Stage = ShaderStages[StageIdx];
132+ const ShaderWebGPUImpl* pShader = Stage.pShader ;
133+ const std::shared_ptr< const WGSLShaderResources>& pShaderResources = pShader->GetShaderResources ();
134134
135135 if (!pShaderResources)
136136 continue ;
@@ -783,9 +783,9 @@ void PipelineStateWebGPUImpl::InitializeWebGPUComputePipeline(const TShaderStage
783783 wgpuComputePipelineDesc.compute .entryPoint = GetWGPUStringView (pShaderWebGPU->GetEntryPoint ());
784784 wgpuComputePipelineDesc.layout = m_PipelineLayout.GetWebGPUPipelineLayout ();
785785
786- const auto & SpecConstEntries = ShaderStages[0 ].SpecConstEntries ;
787- wgpuComputePipelineDesc.compute .constantCount = SpecConstEntries.size ();
788- wgpuComputePipelineDesc.compute .constants = SpecConstEntries.empty () ? nullptr : SpecConstEntries.data ();
786+ const std::vector<WGPUConstantEntry> & SpecConstEntries = ShaderStages[0 ].SpecConstEntries ;
787+ wgpuComputePipelineDesc.compute .constantCount = SpecConstEntries.size ();
788+ wgpuComputePipelineDesc.compute .constants = SpecConstEntries.empty () ? nullptr : SpecConstEntries.data ();
789789
790790 if (AsyncBuilder)
791791 {
You can’t perform that action at this time.
0 commit comments