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-vector-indexing-uniform.shader_test

17 lines
297 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
% Use a uniform to prevent the compiler from optimizing.
tests: Import vector indexing 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-09-30 21:01:22 -05:00
[pixel shader]
uniform int i;
float4 main() : SV_TARGET
{
float4 color = float4(0.5, 0.4, 0.3, 0.2);
color.g = color[i];
color.b = 0.8;
return color;
}
[test]
uniform 0 uint 2
draw quad
probe all rgba (0.5, 0.3, 0.8, 0.2)
Reference in New Issue Copy Permalink
Powered by Gitea Page: 61ms Template: 4ms
English
English
Licenses API