vkd3d-shader/msl: Implement VKD3DSIH_USHR.

This commit is contained in:
Feifan He 2024-12-03 01:13:55 +08:00 committed by Henri Verbeet
parent 138e7caa03
commit 9d4bcc951d
Notes: Henri Verbeet 2024-12-05 21:36:59 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1302
2 changed files with 2 additions and 1 deletions

View File

@ -649,6 +649,7 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
msl_binop(gen, ins, "<<");
break;
case VKD3DSIH_ISHR:
case VKD3DSIH_USHR:
msl_binop(gen, ins, ">>");
break;
case VKD3DSIH_LTO:

View File

@ -15,7 +15,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 uint4 2 0 0 0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (8, 8, 0, 0)
[pixel shader]