Logo
Explore Help
Sign In
wine/vkd3d
0
0
Fork 0
You've already forked vkd3d
mirror of https://gitlab.winehq.org/wine/vkd3d.git synced 2025-04-13 05:43:18 -07:00
Code Issues Packages Projects Releases Wiki Activity
vkd3d/tests/hlsl-array-dimension.shader_test

18 lines
362 B
Plaintext
Raw Normal View History

tests: Use % as the shader_test comment character. So as to avoid clashing with the preprocessor. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-03 19:19:07 -05:00
% Test what kinds of expressions are valid array dimensions.
tests: Import HLSL array dimension tests from Wine. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-01 23:09:47 -05:00
[pixel shader]
float4 main() : sv_target
{
const int dim = 4;
float a[2 * 2] = {0.1, 0.2, 0.3, 0.4};
float b[4.1] = a;
float c[dim] = b;
float d[true] = {c[0]};
float e[65536];
return float4(d[0], c[0], c[1], c[3]);
}
[test]
draw quad
probe all rgba (0.1, 0.1, 0.2, 0.4)
Reference in New Issue Copy Permalink
Powered by Gitea Page: 135ms Template: 11ms
English
English
Licenses API