tests: Add tests for fxgroup syntax.

This commit is contained in:
Francisco Casas 2024-03-26 01:15:42 -03:00 committed by Alexandre Julliard
parent 00c8cf1bcc
commit 83f4b46fb1
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
2 changed files with 40 additions and 0 deletions

View File

@ -110,6 +110,7 @@ vkd3d_shader_tests = \
tests/hlsl/function-return.shader_test \ tests/hlsl/function-return.shader_test \
tests/hlsl/function.shader_test \ tests/hlsl/function.shader_test \
tests/hlsl/fwidth.shader_test \ tests/hlsl/fwidth.shader_test \
tests/hlsl/fxgroup-syntax.shader_test \
tests/hlsl/gather-offset.shader_test \ tests/hlsl/gather-offset.shader_test \
tests/hlsl/gather.shader_test \ tests/hlsl/gather.shader_test \
tests/hlsl/getdimensions.shader_test \ tests/hlsl/getdimensions.shader_test \

View File

@ -0,0 +1,39 @@
% Test complex effect groups syntax
[pixel shader fail(sm>=6) todo]
fxgroup group1
{
technique10
{
pass
{
TurboEncabulator = prefabulated + aluminite;
malleable = logarithmic - casing;
}
pass pass1
{
spurving_bearings = pentametric_fan;
hydrocoptic = marzlevanes;
}
}
technique11 tech1
{
pass
{
Lunar = Waneshaft;
}
}
}
float4 main() : sv_target { return 0; }
% Effect groups cannot have a "technique" without version
[pixel shader fail]
fxgroup group1
{
technique
{
}
}
float4 main() : sv_target { return 0; }