@@ -832,16 +832,6 @@ IGPURenderPipelinePtr CWGPURenderAPI::CreateRenderPipeline(const RenderPipelineD
832832 // - primitiveTopology
833833 //
834834
835- // pipeline-overridable constants
836- Array<WGPUConstantEntry> rhiVertexPipelineConstants (PP_SL);
837- Array<WGPUConstantEntry> rhiFragmentPipelineConstants (PP_SL);
838-
839- for (const PipelineConst& constant : pipelineDesc.vertex .constants )
840- rhiVertexPipelineConstants.append ({ nullptr , _WSTR (constant.name ), constant.value });
841-
842- for (const PipelineConst& constant : pipelineDesc.fragment .constants )
843- rhiFragmentPipelineConstants.append ({ nullptr , _WSTR (constant.name ), constant.value });
844-
845835 WGPURenderPipelineDescriptor rhiRenderPipelineDesc = {};
846836 if (pipelineLayout)
847837 {
@@ -929,8 +919,6 @@ IGPURenderPipelinePtr CWGPURenderAPI::CreateRenderPipeline(const RenderPipelineD
929919 rhiVertexState.entryPoint = _WSTR (pipelineDesc.vertex .shaderEntryPoint );
930920 rhiVertexState.bufferCount = rhiVertexBufferLayoutList.numElem ();
931921 rhiVertexState.buffers = rhiVertexBufferLayoutList.ptr ();
932- rhiVertexState.constants = rhiVertexPipelineConstants.ptr ();
933- rhiVertexState.constantCount = rhiVertexPipelineConstants.numElem ();
934922
935923 if (!rhiVertexState.module )
936924 {
@@ -1020,8 +1008,6 @@ IGPURenderPipelinePtr CWGPURenderAPI::CreateRenderPipeline(const RenderPipelineD
10201008 rhiFragmentState.entryPoint = _WSTR (pipelineDesc.fragment .shaderEntryPoint );
10211009 rhiFragmentState.targetCount = rhiColorTargets.numElem ();
10221010 rhiFragmentState.targets = rhiColorTargets.ptr ();
1023- rhiFragmentState.constants = rhiFragmentPipelineConstants.ptr ();
1024- rhiFragmentState.constantCount = rhiFragmentPipelineConstants.numElem ();
10251011
10261012 if (!rhiFragmentState.module )
10271013 {
@@ -1260,14 +1246,7 @@ IGPUComputePipelinePtr CWGPURenderAPI::CreateComputePipeline(const ComputePipeli
12601246 }
12611247 }
12621248
1263- Array<WGPUConstantEntry> rhiComputePipelineConstants (PP_SL);
1264-
1265- for (const PipelineConst& constant : pipelineDesc.constants )
1266- rhiComputePipelineConstants.append ({ nullptr , _WSTR (constant.name ), constant.value });
1267-
12681249 WGPUComputePipelineDescriptor rhiComputePipelineDesc = {};
1269- rhiComputePipelineDesc.compute .constantCount = rhiComputePipelineConstants.numElem ();
1270- rhiComputePipelineDesc.compute .constants = rhiComputePipelineConstants.ptr ();
12711250 rhiComputePipelineDesc.compute .entryPoint = _WSTR (pipelineDesc.shaderEntryPoint );
12721251 rhiComputePipelineDesc.compute .module = rhiComputeShaderModule;
12731252
0 commit comments