vkd3d-shader/hlsl: Store static initialization instructions in a block.

This commit is contained in:
Nikolay Sivov
2023-06-09 15:28:06 +02:00
committed by Alexandre Julliard
parent 5dee6561c2
commit 99314b6340
Notes: Alexandre Julliard 2023-06-12 23:10:20 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/228
4 changed files with 8 additions and 9 deletions

View File

@@ -796,9 +796,8 @@ struct hlsl_ctx
struct hlsl_type *Void;
} builtin_types;
/* List of the instruction nodes for initializing static variables; linked by the
* hlsl_ir_node.entry fields. */
struct list static_initializers;
/* List of the instruction nodes for initializing static variables. */
struct hlsl_block static_initializers;
/* Dynamic array of constant values that appear in the shader, associated to the 'c' registers.
* Only used for SM1 profiles. */