vkd3d-shader/hlsl: Set default values for annotations variables.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2024-06-15 19:56:25 +02:00
committed by Henri Verbeet
parent 4d2ce385a7
commit 0f7ac0a054
Notes: Henri Verbeet 2024-07-08 18:55:00 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/918
3 changed files with 29 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ technique10
// Without initializer
technique10 < int a; > {}
[effect fail todo]
[effect fail]
// Only numeric types and strings are allowed
technique10 < DepthStencilState ds = { 0 }; > {}
@@ -82,9 +82,9 @@ technique10 < struct s { int a; } var = { 2 }; > {}
// Static modifier is not allowed
technique10 < static int a = 5; > {}
[effect fail todo]
[effect fail]
// Initializer should not depend on other annotations
technique10 < int a = 1, b = a; > {}
[effect fail todo]
[effect fail]
technique10 < int a = 1; int b = a; > {}