vkd3d-shader: Keep track of the buffer in which a variable was defined.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-06-21 23:37:10 -05:00
committed by Alexandre Julliard
parent 4695690ac8
commit dbfe63d6a1
4 changed files with 20 additions and 5 deletions

View File

@@ -222,6 +222,7 @@ struct hlsl_ir_var
struct vkd3d_shader_location loc;
const char *name;
struct hlsl_semantic semantic;
struct hlsl_buffer *buffer;
unsigned int modifiers;
struct hlsl_reg_reservation reg_reservation;
struct list scope_entry, param_entry, extern_entry;
@@ -451,6 +452,7 @@ struct hlsl_ctx
struct list extern_vars;
struct list buffers;
struct hlsl_buffer *cur_buffer, *globals_buffer;
struct list types;
struct rb_tree functions;
const struct hlsl_ir_function_decl *cur_function;