vkd3d-shader/glsl: Implement VKD3DSIH_UMAX and VKD3DSIH_UMIN.

This commit is contained in:
Henri Verbeet 2024-10-18 23:18:54 +02:00
parent 6a119b6946
commit 85697d76be
Notes: Henri Verbeet 2024-10-24 21:02:25 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1211
2 changed files with 3 additions and 1 deletions

View File

@ -1482,9 +1482,11 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
break;
case VKD3DSIH_IMAX:
case VKD3DSIH_MAX:
case VKD3DSIH_UMAX:
shader_glsl_intrinsic(gen, ins, "max");
break;
case VKD3DSIH_MIN:
case VKD3DSIH_UMIN:
shader_glsl_intrinsic(gen, ins, "min");
break;
case VKD3DSIH_IMUL:

View File

@ -101,7 +101,7 @@ uint4 main() : sv_target
[test]
uniform 0 uint4 1 2 0 0
todo(glsl) draw quad
draw quad
probe (0, 0) rgbaui (2, 1, 2, 1)
[rtv 0]