Skip to content
Snippets Groups Projects
Commit 82720796 authored by Francisco Casas's avatar Francisco Casas Committed by Alexandre Julliard
Browse files

tests: Test complex initializers for numeric types.

parent 053f5354
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,7 @@ vkd3d_shader_tests = \
tests/hlsl-gather.shader_test \
tests/hlsl-initializer-invalid-arg-count.shader_test \
tests/hlsl-initializer-local-array.shader_test \
tests/hlsl-initializer-numeric.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-initializer-struct.shader_test \
tests/hlsl-intrinsic-override.shader_test \
......@@ -301,6 +302,7 @@ XFAIL_TESTS = \
tests/hlsl-array-dimension.shader_test \
tests/hlsl-initializer-invalid-arg-count.shader_test \
tests/hlsl-initializer-local-array.shader_test \
tests/hlsl-initializer-numeric.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-initializer-struct.shader_test \
tests/hlsl-bool-cast.shader_test \
......
[pixel shader]
float4 main() : sv_target
{
int4 aa = {1, 2, 3, 4};
return aa;
}
[test]
draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
[pixel shader]
float4 main() : sv_target
{
float4 aa = {1, 2, 3, 4};
return aa;
}
[test]
draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
[pixel shader]
float4 main() : sv_target
{
float3 aa = {1, 2, 3};
float4 bb = {aa.x, aa.y, aa.z, 4.0};
return bb;
}
[test]
draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment