mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Parse string default values.
This commit is contained in:
committed by
Henri Verbeet
parent
f8108a4753
commit
094e298c1c
Notes:
Henri Verbeet
2024-08-13 21:26:39 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/988
@@ -456,8 +456,10 @@ struct hlsl_ir_var
|
||||
* This pointer is NULL for others. */
|
||||
struct hlsl_default_value
|
||||
{
|
||||
/* Default value, in case the component is a string, othewise it is NULL. */
|
||||
const char *string;
|
||||
/* Default value, in case the component is a numeric value. */
|
||||
union hlsl_constant_value_component value;
|
||||
union hlsl_constant_value_component number;
|
||||
} *default_values;
|
||||
|
||||
/* A dynamic array containing the state block on the variable's declaration, if any.
|
||||
|
Reference in New Issue
Block a user