mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test complex broadcasts.
Signed-off-by: Francisco Casas <fcasas@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> 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:
parent
a58c0e7c9d
commit
4b4537b874
@ -56,6 +56,7 @@ vkd3d_shader_tests = \
|
||||
tests/arithmetic-int.shader_test \
|
||||
tests/arithmetic-uint.shader_test \
|
||||
tests/bitwise.shader_test \
|
||||
tests/cast-broadcast.shader_test \
|
||||
tests/cast-to-float.shader_test \
|
||||
tests/cast-to-half.shader_test \
|
||||
tests/cast-to-int.shader_test \
|
||||
|
24
tests/cast-broadcast.shader_test
Normal file
24
tests/cast-broadcast.shader_test
Normal file
@ -0,0 +1,24 @@
|
||||
[pixel shader]
|
||||
|
||||
struct foo
|
||||
{
|
||||
float3 aa;
|
||||
float4 bb;
|
||||
};
|
||||
|
||||
struct bar
|
||||
{
|
||||
struct foo aa;
|
||||
int2 bb;
|
||||
int4 cc[8];
|
||||
};
|
||||
|
||||
float4 main() : SV_TARGET
|
||||
{
|
||||
struct bar p = (struct bar)42;
|
||||
return p.aa.bb + p.cc[5];
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
todo probe all rgba (84.0, 84.0, 84.0, 84.0)
|
Loading…
x
Reference in New Issue
Block a user