diff --git a/libs/vkd3d-shader/msl.c b/libs/vkd3d-shader/msl.c index e108e805..aefb97e6 100644 --- a/libs/vkd3d-shader/msl.c +++ b/libs/vkd3d-shader/msl.c @@ -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; diff --git a/tests/hlsl/cast-to-uint.shader_test b/tests/hlsl/cast-to-uint.shader_test index d4f9846e..f767b6e0 100644 --- a/tests/hlsl/cast-to-uint.shader_test +++ b/tests/hlsl/cast-to-uint.shader_test @@ -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)