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

@@ -7,14 +7,14 @@ shader model < 6.0
technique10 t1 < int a = 1; > {}
technique10 t2 < int a = 2; int t1 = 3; int t2 = 4; > {}
[effect]
[effect todo]
// Annotations on passes
technique10 t1 < int a = 1; >
{
pass < int t1 = 2; > {}
}
[effect]
[effect todo]
// Using names from the global scope
float a;

View File

@@ -1,5 +1,5 @@
% Test complex effect groups syntax
[pixel shader fail(sm>=6) todo]
[pixel shader fail(sm>=6)]
fxgroup group1
{
technique10