mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test initialization of implicit size arrays.
Signed-off-by: Francisco Casas <fcasas@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4b4537b874
commit
1240a947d2
@ -77,6 +77,7 @@ vkd3d_shader_tests = \
|
||||
tests/hlsl-gather.shader_test \
|
||||
tests/hlsl-initializer-flatten.shader_test \
|
||||
tests/hlsl-initializer-invalid-arg-count.shader_test \
|
||||
tests/hlsl-initializer-implicit-array.shader_test \
|
||||
tests/hlsl-initializer-local-array.shader_test \
|
||||
tests/hlsl-initializer-nested.shader_test \
|
||||
tests/hlsl-initializer-numeric.shader_test \
|
||||
|
18
tests/hlsl-initializer-implicit-array.shader_test
Normal file
18
tests/hlsl-initializer-implicit-array.shader_test
Normal file
@ -0,0 +1,18 @@
|
||||
[pixel shader]
|
||||
float4 main() : SV_TARGET
|
||||
{
|
||||
float4 arr[] = {10, 20, 30, 40, 50, 60, 70, 80};
|
||||
return arr[1];
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
todo probe all rgba (50, 60, 70, 80)
|
||||
|
||||
|
||||
[pixel shader fail]
|
||||
float4 main() : SV_TARGET
|
||||
{
|
||||
float4 arr[] = {10, 20, 30, 40, 50, 60, 70};
|
||||
return arr[0];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user