mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
d3ba810c98
This is simply unnecessary and wastes time. As part of this, simply remove the "all" directive. Only for a couple of tests is it even potentially interesting to validate all pixels (e.g. nointerpolation.shader_test), and for those "all" is replaced with an explicit (0, 0, 640, 480) rect. In all other cases we just probe (0, 0).
109 lines
1.4 KiB
Plaintext
109 lines
1.4 KiB
Plaintext
[pixel shader]
|
|
typedef row_major float2x2 mat_t;
|
|
|
|
row_major mat_t m;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return float4(m[0], m[1]);
|
|
}
|
|
|
|
[test]
|
|
uniform 0 float4 0.1 0.3 0.0 0.0
|
|
uniform 4 float4 0.2 0.4 0.0 0.0
|
|
todo(glsl) draw quad
|
|
probe (0, 0) rgba (0.1, 0.3, 0.2, 0.4)
|
|
|
|
[pixel shader fail(sm<6)]
|
|
row_major row_major float4x4 m;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return float4(0, 0, 0, 0);
|
|
}
|
|
|
|
[pixel shader fail]
|
|
typedef row_major float4x4 mat_t;
|
|
column_major mat_t m;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return float4(0, 0, 0, 0);
|
|
}
|
|
|
|
[pixel shader fail]
|
|
typedef row_major float4x4 matrix_t;
|
|
typedef column_major matrix_t matrix2_t;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
typedef column_major float4 myfloat_t;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
column_major float4 f;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
struct apple
|
|
{
|
|
float4x4 m;
|
|
};
|
|
typedef column_major struct apple apple_t;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
struct apple
|
|
{
|
|
float4x4 m;
|
|
};
|
|
column_major struct apple a;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
typedef float4x4 myarray_t[2];
|
|
|
|
row_major myarray_t a;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
float4 main(uniform row_major float4 f) : sv_target
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[pixel shader fail]
|
|
struct apple
|
|
{
|
|
row_major float4 f;
|
|
};
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return 0;
|
|
}
|