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

tests: Test for invalid complex broadcasts.

parent 791f8a8f
No related branches found
No related tags found
1 merge request!29vkd3d-shader/hlsl: Support complex implicit casts, complex explicit casts and complex broadcasts. (PART 1/2)
......@@ -21,3 +21,50 @@ float4 main() : SV_TARGET
[test]
todo draw quad
todo probe all rgba (84.0, 84.0, 84.0, 84.0)
[pixel shader fail todo]
struct apple
{
float3 aa;
float4 bb;
};
float4 main() : SV_TARGET
{
struct apple f = 31;
return f.bb;
}
[pixel shader fail]
struct apple
{
float3 aa;
float4 bb;
};
float4 fun(struct apple f)
{
return f.bb;
}
float4 main() : SV_TARGET
{
return fun(31);
}
[pixel shader fail]
struct apple
{
float4 foo;
Texture2D tex;
};
float4 PSMain() : SV_TARGET
{
struct apple a1;
a1 = (struct apple)1;
return a1.foo;
}
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