File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
backends/vulkan/runtime/api Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ Context* context() {
272
272
273
273
VkPipeline Context::get_shader_pipeline (
274
274
const vkapi::ShaderInfo& shader,
275
- const vkapi::SpecVarList& spec_constants ) {
275
+ const vkapi::SpecVarList& additional_constants ) {
276
276
const uint32_t push_constants_size = 128u ;
277
277
278
278
VkDescriptorSetLayout shader_layout =
@@ -281,12 +281,15 @@ VkPipeline Context::get_shader_pipeline(
281
281
pipeline_layout_cache ().retrieve (shader_layout, push_constants_size);
282
282
283
283
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);
284
290
285
291
VkPipeline pipeline = pipeline_cache ().retrieve (
286
- {pipeline_layout,
287
- shader_cache ().retrieve (shader),
288
- spec_constants,
289
- local_workgroup_size});
292
+ {pipeline_layout, shader_cache ().retrieve (shader), spec_constants});
290
293
291
294
return pipeline;
292
295
}
You can’t perform that action at this time.
0 commit comments