File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
backends/vulkan/runtime/api Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ Context* context() {
272272
273273VkPipeline Context::get_shader_pipeline (
274274 const vkapi::ShaderInfo& shader,
275- const vkapi::SpecVarList& spec_constants ) {
275+ const vkapi::SpecVarList& additional_constants ) {
276276 const uint32_t push_constants_size = 128u ;
277277
278278 VkDescriptorSetLayout shader_layout =
@@ -281,12 +281,17 @@ VkPipeline Context::get_shader_pipeline(
281281 pipeline_layout_cache ().retrieve (shader_layout, push_constants_size);
282282
283283 const utils::WorkgroupSize local_workgroup_size (4u , 4u , 1u );
284+ vkapi::SpecVarList spec_constants = {
285+ SV (local_workgroup_size[0u ]),
286+ SV (local_workgroup_size[1u ]),
287+ SV (local_workgroup_size[2u ])};
288+
289+ spec_constants.append (additional_constants);
284290
285291 VkPipeline pipeline = pipeline_cache ().retrieve (
286292 {pipeline_layout,
287293 shader_cache ().retrieve (shader),
288- spec_constants,
289- local_workgroup_size});
294+ spec_constants});
290295
291296 return pipeline;
292297}
You can’t perform that action at this time.
0 commit comments