vkd3d-shader/hlsl: Write SM4 break instructions.

This commit is contained in:
Giovanni Mascellani
2021-09-10 08:53:17 +02:00
committed by Alexandre Julliard
parent 99acf5038e
commit 7c3dadce6b
Notes: Alexandre Julliard 2023-02-15 22:20:08 +01:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/92
5 changed files with 65 additions and 23 deletions

View File

@@ -1861,6 +1861,20 @@ const char *hlsl_node_type_to_string(enum hlsl_ir_node_type type)
return names[type];
}
const char *hlsl_jump_type_to_string(enum hlsl_ir_jump_type type)
{
static const char * const names[] =
{
"HLSL_IR_JUMP_BREAK",
"HLSL_IR_JUMP_CONTINUE",
"HLSL_IR_JUMP_DISCARD",
"HLSL_IR_JUMP_RETURN",
};
assert(type < ARRAY_SIZE(names));
return names[type];
}
static void dump_instr(struct hlsl_ctx *ctx, struct vkd3d_string_buffer *buffer, const struct hlsl_ir_node *instr);
static void dump_instr_list(struct hlsl_ctx *ctx, struct vkd3d_string_buffer *buffer, const struct list *list)