Skip to content
Snippets Groups Projects
Commit dbcf0634 authored by Francisco Casas's avatar Francisco Casas Committed by Alexandre Julliard
Browse files
parent 13a1ba42
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,8 @@ vkd3d_shader_tests = \
tests/hlsl-function-overload.shader_test \
tests/hlsl-gather-offset.shader_test \
tests/hlsl-gather.shader_test \
tests/hlsl-initializer-local-array.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-intrinsic-override.shader_test \
tests/hlsl-invalid.shader_test \
tests/hlsl-majority-pragma.shader_test \
......@@ -295,6 +297,8 @@ XFAIL_TESTS = \
tests/cast-to-int.shader_test \
tests/cast-to-uint.shader_test \
tests/hlsl-array-dimension.shader_test \
tests/hlsl-initializer-local-array.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-bool-cast.shader_test \
tests/hlsl-duplicate-modifiers.shader_test \
tests/hlsl-for.shader_test \
......
[pixel shader]
float4 main() : SV_TARGET
{
float4 array_loc[3] = {
11, 12, 13, 14,
21, 22, 23, 24,
31, 32, 33, 34
};
return array_loc[1];
}
[test]
draw quad
probe all rgba (21, 22, 23, 24)
[pixel shader]
float4 main() : SV_TARGET
{
float4 array_loc[2][4] = {
11, 12, 13, 14,
21, 22, 23, 24,
31, 32, 33, 34,
41, 42, 43, 44,
51, 52, 53, 54,
61, 62, 63, 64,
71, 72, 73, 74,
81, 82, 83, 84,
};
return array_loc[1][2];
}
[test]
draw quad
probe all rgba (71, 72, 73, 74)
[pixel shader]
static const float4 array_st[3] = {
11, 12, 13, 14,
21, 22, 23, 24,
31, 32, 33, 34
};
float4 main() : SV_TARGET
{
return array_st[1];
}
[test]
draw quad
probe all rgba (21, 22, 23, 24)
[pixel shader]
static const float4 array_st[4][2] = {
11, 12, 13, 14,
21, 22, 23, 24,
31, 32, 33, 34,
41, 42, 43, 44,
51, 52, 53, 54,
61, 62, 63, 64,
71, 72, 73, 74,
81, 82, 83, 84,
};
float4 main() : SV_TARGET
{
return array_st[2][1];
}
[test]
draw quad
probe all rgba (61, 62, 63, 64)
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