vkd3d-shader/hlsl: Unroll loops with conditional jumps.

This commit is contained in:
Victor Chiletto
2024-10-21 17:17:23 -03:00
committed by Henri Verbeet
parent 351d58a95b
commit a1d995e740
Notes: Henri Verbeet 2024-12-12 17:48:02 +01:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1053
4 changed files with 205 additions and 87 deletions

View File

@@ -5,7 +5,7 @@ void main(float4 pos : position, out float tex : texcoord, out float4 out_pos :
out_pos = pos;
}
[pixel shader todo(sm<6)]
[pixel shader todo(sm<4)]
float4 main(float tex : texcoord) : sv_target
{
int i;
@@ -23,7 +23,7 @@ float4 main(float tex : texcoord) : sv_target
}
[test]
todo(sm<6) draw quad
todo(sm<4) draw quad
probe ( 0, 0, 159, 480) rgba (10.0, 35.0, 0.0, 0.0)
probe (161, 0, 479, 480) rgba (10.0, 38.0, 0.0, 0.0)
probe (481, 0, 640, 480) rgba ( 5.0, 10.0, 0.0, 0.0)