Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl_codegen.c:
/* TODO: allow breaks in the switch statements. */if (instr->type == HLSL_IR_JUMP){struct hlsl_ir_jump *jump = hlsl_ir_jump(instr);if (jump->type == HLSL_IR_JUMP_BREAK){hlsl_error(ctx, &instr->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_SYNTAX,"Flow control instruction \"break\" can't be used in this context.");}}- }
+}
I don't think this function does what you want it to do.