Skip to content
Snippets Groups Projects
Commit 9619582d authored by Feifan He's avatar Feifan He Committed by Henri Verbeet
Browse files

vkd3d-shader/msl: Implement VKD3DSIH_ROUND_Z.

parent 778382cd
Branches
Tags vkd3d-1.14
1 merge request!1283vkd3d-shader/msl: Implement some instructions, part 3.
Pipeline #35122 skipped
......@@ -548,6 +548,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
case VKD3DSIH_ROUND_PI:
msl_intrinsic(gen, ins, "ceil");
break;
case VKD3DSIH_ROUND_Z:
msl_intrinsic(gen, ins, "trunc");
break;
default:
msl_unhandled(gen, ins);
break;
......
......@@ -11,7 +11,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
todo(msl) draw quad
draw quad
probe (0, 0) rgba (1912.0, 1657.0, -127.0, 867.0) 1
[pixel shader]
......@@ -24,5 +24,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
todo(msl) draw quad
draw quad
probe (0, 0) rgba (-127.0, -127.0, -127.0, -127.0) 1
......@@ -9,7 +9,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.2 1.7 -1.2 -1.7
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.2, 0.7, -0.2, -0.7) 4
[pixel shader todo(sm<4)]
......@@ -24,5 +24,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.2 2.7 -1.2 -2.7
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (1.0, 2.0, -1.0, -2.0)
......@@ -8,10 +8,10 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.0, 6.0, 7.0, 3.0)
uniform 0 float4 -1.5 6.5 7.5 3.4
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (-1.0, 6.0, 7.0, 3.0)
[pixel shader todo(sm<4)]
......@@ -27,7 +27,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (6.0, 7.0, 0.0, 3.0)
......@@ -45,5 +45,5 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 -1 6 7 3
if(sm>=4) uniform 0 int4 -1 6 7 3
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (6.0, 7.0, -1.0, 3.0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment