Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.h:
struct hlsl_scope *upper; /* The scope was created for the loop statement. */ bool loop;
- /* The scope was created for the switch statement. */
- bool _switch;
Minor refactoring thought, but we could make this an enum, and pass that to hlsl_push_scope(). Not really important though.