mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add a test for uninitialized varyings.
This commit is contained in:
parent
b0646cb427
commit
568776bbf6
Notes:
Henri Verbeet
2024-11-04 17:11:05 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1236
@ -268,6 +268,7 @@ vkd3d_shader_tests = \
|
||||
tests/hlsl/unbounded-array-5.1.shader_test \
|
||||
tests/hlsl/uniform-parameters.shader_test \
|
||||
tests/hlsl/uniform-semantics.shader_test \
|
||||
tests/hlsl/uninitialized-varyings.shader_test \
|
||||
tests/hlsl/unorm-snorm.shader_test \
|
||||
tests/hlsl/unroll.shader_test \
|
||||
tests/hlsl/unsigned.shader_test \
|
||||
|
46
tests/hlsl/uninitialized-varyings.shader_test
Normal file
46
tests/hlsl/uninitialized-varyings.shader_test
Normal file
@ -0,0 +1,46 @@
|
||||
% Uninitialized varyings behave generally quite different across different
|
||||
% drivers. This test is limited to what is more or less consistent.
|
||||
|
||||
[require]
|
||||
shader model < 4.0
|
||||
|
||||
[pixel shader]
|
||||
% The alpha channel is not consistent here.
|
||||
float4 main(float4 v : texcoord0) : sv_target
|
||||
{
|
||||
return float4(v.xyz, 1);
|
||||
}
|
||||
|
||||
[test]
|
||||
clear rtv 0 1 0 0 1
|
||||
todo draw quad
|
||||
probe (0, 0) rgba (0, 0, 0, 1)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
float4 main(float2 v : texcoord3, float3 w : texcoord1) : sv_target
|
||||
{
|
||||
return float4(v.xy, w.yz);
|
||||
}
|
||||
|
||||
[test]
|
||||
clear rtv 0 1 0 0 1
|
||||
todo draw quad
|
||||
probe (0, 0) rgba (0, 0, 0, 0)
|
||||
|
||||
|
||||
[require]
|
||||
% 2.0 consistently yields white. 3.0 has no consistent results.
|
||||
% color1 also has no consistent results in 2.0 or 3.0.
|
||||
shader model < 3.0
|
||||
|
||||
[pixel shader]
|
||||
float4 main(float4 v : color0) : sv_target
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
[test]
|
||||
clear rtv 0 1 0 0 1
|
||||
todo draw quad
|
||||
probe (0, 0) rgba (1, 1, 1, 1)
|
Loading…
Reference in New Issue
Block a user