vkd3d-shader/msl: Implement VKD3DSIH_FTOU.

This commit is contained in:
Feifan He 2024-11-22 15:45:54 +08:00 committed by Henri Verbeet
parent 9fd7f4f1ec
commit a7ae6404de
Notes: Henri Verbeet 2024-11-27 14:12:36 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1283
2 changed files with 4 additions and 1 deletions

View File

@ -516,6 +516,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
case VKD3DSIH_FTOI:
msl_cast(gen, ins, "int");
break;
case VKD3DSIH_FTOU:
msl_cast(gen, ins, "uint");
break;
case VKD3DSIH_GEO:
msl_relop(gen, ins, ">=");
break;

View File

@ -25,7 +25,7 @@ uniform 0 float 2.6
uniform 1 int 2
uniform 2 int -2
uniform 3 float -3.6
todo(msl) draw quad
draw quad
probe (0, 0) rgba (0.5, 0.5, 0.5, 0.5)