mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add a parameter for jump nodes and use it for 'discard'.
This commit is contained in:
committed by
Alexandre Julliard
parent
7e1fcdca89
commit
b40179da3a
Notes:
Alexandre Julliard
2023-06-27 23:33:43 +02:00
Approved-by: Giovanni Mascellani (@giomasce) 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/211
@@ -566,6 +566,8 @@ struct hlsl_ir_jump
|
||||
{
|
||||
struct hlsl_ir_node node;
|
||||
enum hlsl_ir_jump_type type;
|
||||
/* Argument used for HLSL_IR_JUMP_DISCARD. */
|
||||
struct hlsl_src condition;
|
||||
};
|
||||
|
||||
struct hlsl_ir_swizzle
|
||||
@@ -1120,7 +1122,7 @@ struct hlsl_ir_node *hlsl_new_if(struct hlsl_ctx *ctx, struct hlsl_ir_node *cond
|
||||
struct hlsl_block *then_block, struct hlsl_block *else_block, const struct vkd3d_shader_location *loc);
|
||||
struct hlsl_ir_node *hlsl_new_int_constant(struct hlsl_ctx *ctx, int32_t n, const struct vkd3d_shader_location *loc);
|
||||
struct hlsl_ir_node *hlsl_new_jump(struct hlsl_ctx *ctx,
|
||||
enum hlsl_ir_jump_type type, const struct vkd3d_shader_location *loc);
|
||||
enum hlsl_ir_jump_type type, struct hlsl_ir_node *condition, const struct vkd3d_shader_location *loc);
|
||||
|
||||
void hlsl_init_simple_deref_from_var(struct hlsl_deref *deref, struct hlsl_ir_var *var);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user