vkd3d-shader/hlsl: Store state block on pass variables.

This commit is contained in:
Francisco Casas
2024-03-19 15:35:59 -03:00
committed by Alexandre Julliard
parent a99bcb1196
commit ef9ae22ed0
Notes: Alexandre Julliard 2024-04-11 17:02:42 -05: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/739
5 changed files with 15 additions and 6 deletions

View File

@@ -426,6 +426,7 @@ struct hlsl_ir_var
/* A dynamic array containing the state block on the variable's declaration, if any.
* An array variable may contain multiple state blocks.
* A technique pass will always contain one.
* These are only really used for effect profiles. */
struct hlsl_state_block **state_blocks;
unsigned int state_block_count;