vkd3d-shader/fx: Implement shader initializers.

This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-01-15 00:03:08 +01:00
committed by Henri Verbeet
parent 6e15664bff
commit ffc8f98bba
Notes: Henri Verbeet 2025-12-09 17:21:48 +01:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Nikolay Sivov (@nsivov)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1340
5 changed files with 62 additions and 56 deletions

View File

@@ -501,6 +501,8 @@ struct hlsl_ir_var
const char *string;
/* Default value, in case the component is a numeric value. */
union hlsl_constant_value_component number;
/* Default value, in case the component is a shader. otherwise it is NULL. */
struct hlsl_ir_compile *shader;
} *default_values;
/* Pointer to the temp copy of the variable, in case it is uniform. */