mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Use SM1-compatible uniform layouts in shader tests.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
9bbce56dad
commit
efd9e9e990
@@ -1,7 +1,7 @@
|
||||
[pixel shader]
|
||||
float4 main(uniform float u, uniform float v) : sv_target
|
||||
float4 main(uniform float2 u) : sv_target
|
||||
{
|
||||
return float4(max(u, v), max(2, 2.1), max(true, 2), max(-1, -1));
|
||||
return float4(max(u.x, u.y), max(2, 2.1), max(true, 2), max(-1, -1));
|
||||
}
|
||||
|
||||
[test]
|
||||
@@ -10,11 +10,11 @@ draw quad
|
||||
probe all rgba (0.7, 2.1, 2.0, -1.0)
|
||||
|
||||
[pixel shader]
|
||||
float4 main(uniform float2 u, uniform float2 v) : sv_target
|
||||
float4 main(uniform float4 u) : sv_target
|
||||
{
|
||||
float3 a = float3(-0.1, 0.2, 0.3);
|
||||
|
||||
return float4(max(u, v), max(a, u));
|
||||
return float4(max(u.xy, u.zw), max(a, u.xy));
|
||||
}
|
||||
|
||||
[test]
|
||||
|
Reference in New Issue
Block a user