vkd3d/tests/cast-broadcast.shader_test
Francisco Casas 4b4537b874 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>
2022-05-02 11:30:00 +02:00

25 lines
291 B
Plaintext

[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)