Skip to content

Commit 79e2600

Browse files
committed
no auto here
1 parent f2100e3 commit 79e2600

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Graphics/GraphicsEngineWebGPU/src/PipelineStateWebGPUImpl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)