23 Jun
2023
23 Jun
'23
4:57 p.m.
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.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/245#note_36655