tests: Test compile syntax on effects.

This commit is contained in:
Francisco Casas 2024-06-18 00:39:59 -04:00 committed by Henri Verbeet
parent e9260bba3a
commit 1d24587405
Notes: Henri Verbeet 2024-08-20 21:34:57 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1006

View File

@ -161,3 +161,38 @@ float4 main() : sv_target
return 0; return 0;
} }
[require]
shader model >= 4.0
shader model < 6.0
[effect fail]
float4 fun(uniform float4 a, float4 b : FOO) : sv_target
{
return 0;
}
technique10 T0
{
pass P0
{
PixelShader = compile ps_4_0 fun(4, 5);
}
}
[effect todo]
float4 fun(uniform float4 a, float4 b : FOO) : sv_target
{
return 10 * a + b;
}
technique10 T0
{
pass P0
{
PixelShader = compile ps_4_0 fun(4);
}
}