mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Write SM4 break instructions.
This commit is contained in:
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
@@ -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)
|
||||
|
Reference in New Issue
Block a user