Does Vulkan support variable sized layouts?

I am rewriting a glsl version 450 compute shader for use in a Vulkan pipeline. The shader uses this extension:

#extension GL_ARB_compute_variable_group_size : enable
layout(local_size_variable) in;

But gslLangValidator is throwing an error saying that it doesn’t understand local_size_variable is there
something I need to do to enable this extension for use in Vulkan?


Vulkan has no extensions to provide this functionality. The best you can do is use specialization constants for the group size and recompile as needed.