mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/msl: Implement VSIR_OP_UDIV_SIMPLE.
This commit is contained in:
Notes:
Henri Verbeet
2025-10-14 16:33:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1787
@@ -1578,6 +1578,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
|
|||||||
case VSIR_OP_HTAN:
|
case VSIR_OP_HTAN:
|
||||||
msl_intrinsic(gen, ins, "tanh");
|
msl_intrinsic(gen, ins, "tanh");
|
||||||
break;
|
break;
|
||||||
|
case VSIR_OP_UDIV_SIMPLE:
|
||||||
|
msl_binop(gen, ins, "/");
|
||||||
|
break;
|
||||||
case VSIR_OP_IF:
|
case VSIR_OP_IF:
|
||||||
msl_if(gen, ins);
|
msl_if(gen, ins);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ float4 main() : SV_TARGET
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 5.0 16.0 0.0 0.0
|
uniform 0 float4 5.0 16.0 0.0 0.0
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
probe (0, 0) rgba (21.0, -11.0, 80.0, 0.0)
|
probe (0, 0) f32(21.0, -11.0, 80.0, 0.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
uniform float2 a;
|
uniform float2 a;
|
||||||
@@ -40,8 +40,8 @@ float4 main() : SV_TARGET
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 42.0 5.0 0.0 0.0
|
uniform 0 float4 42.0 5.0 0.0 0.0
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
probe (0, 0) rgba (8.0, -8.0, -8.0, 8.0)
|
probe (0, 0) f32(8.0, -8.0, -8.0, 8.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
uniform float2 a;
|
uniform float2 a;
|
||||||
@@ -70,8 +70,8 @@ float4 main() : SV_TARGET
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 45.0 5.0 0.0 0.0
|
uniform 0 float4 45.0 5.0 0.0 0.0
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
probe (0, 0) rgba (9.0, -9.0, -9.0, 9.0)
|
probe (0, 0) f32(9.0, -9.0, -9.0, 9.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
uniform float2 a;
|
uniform float2 a;
|
||||||
@@ -150,9 +150,9 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float 999.0
|
uniform 0 float 999.0
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
if(sm<4) probe (0, 0) rgba(16798, -16798, -16798, 16798)
|
if(sm<4) probe (0, 0) f32(16798, -16798, -16798, 16798)
|
||||||
if(sm>=4) probe (0, 0) rgba(16799, -16799, -16799, 16799)
|
if(sm>=4) probe (0, 0) f32(16799, -16799, -16799, 16799)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
float f;
|
float f;
|
||||||
@@ -167,8 +167,8 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float 999.0
|
uniform 0 float 999.0
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
probe (0, 0) rgba(16798, -16798, -16798, 16798)
|
probe (0, 0) f32(16798, -16798, -16798, 16798)
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
shader model >= 6.0
|
shader model >= 6.0
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ uniform 0 uint 0xfffe
|
|||||||
uniform 4 uint 0xb
|
uniform 4 uint 0xb
|
||||||
uniform 8 uint 0xffff
|
uniform 8 uint 0xffff
|
||||||
uniform 12 uint 0xffff
|
uniform 12 uint 0xffff
|
||||||
todo(msl) draw quad
|
todo(msl & sm>=6) draw quad
|
||||||
probe (0, 0) u32(0x10, 2, 0x10, 0x3333)
|
probe (0, 0) u32(0x10, 2, 0x10, 0x3333)
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
|
|||||||
Reference in New Issue
Block a user