vkd3d-shader/msl: Implement VKD3DSIH_ISHL.

This commit is contained in:
Feifan He 2024-12-03 01:12:13 +08:00 committed by Henri Verbeet
parent a425c242a4
commit 5d6ed0fa30
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 5 additions and 2 deletions

View File

@ -645,6 +645,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
case VKD3DSIH_IF:
msl_if(gen, ins);
break;
case VKD3DSIH_ISHL:
msl_binop(gen, ins, "<<");
break;
case VKD3DSIH_LTO:
msl_relop(gen, ins, "<");
break;

View File

@ -52,7 +52,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 uint4 3 0 0 0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (280, 280, 0, 0)
[pixel shader]
@ -72,7 +72,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 uint4 2 0 0 0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (20, -48, 20, -48)
[pixel shader fail]