mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test compile syntax on effects.
This commit is contained in:
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
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user