mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/msl: Implement VKD3DSIH_IEQ.
This commit is contained in:
parent
67dd1d2b0c
commit
ac897781ba
Notes:
Henri Verbeet
2024-12-03 14:57:01 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1291
@ -549,6 +549,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
|
||||
case VKD3DSIH_DP4:
|
||||
msl_dot(gen, ins, VKD3DSP_WRITEMASK_ALL);
|
||||
break;
|
||||
case VKD3DSIH_IEQ:
|
||||
msl_relop(gen, ins, "==");
|
||||
break;
|
||||
case VKD3DSIH_FRC:
|
||||
msl_intrinsic(gen, ins, "fract");
|
||||
break;
|
||||
|
@ -26,7 +26,7 @@ float4 main() : sv_target
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float4 5.0 6.0 7.0 8.0
|
||||
uniform 8 float 2
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (10.0, 10.0, 10.0, 10.0)
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float 0
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (4.0, 4.0, 4.0, 4.0)
|
||||
uniform 4 float 2
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
|
||||
@ -99,5 +99,5 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float 1
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (2.0, 2.0, 2.0, 2.0)
|
||||
|
@ -120,7 +120,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float 2
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (8, 9, 10, 11)
|
||||
|
||||
|
||||
|
@ -36,16 +36,16 @@ float4 main() : SV_TARGET
|
||||
|
||||
[test]
|
||||
uniform 0 float 0
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (11.0, 11.0, 11.0, 11.0)
|
||||
uniform 0 float 1
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (12.0, 12.0, 12.0, 12.0)
|
||||
uniform 0 float 2
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (13.0, 13.0, 13.0, 13.0)
|
||||
uniform 0 float 3
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (14.0, 14.0, 14.0, 14.0)
|
||||
|
||||
|
||||
|
@ -12,5 +12,5 @@ float4 main() : SV_TARGET
|
||||
|
||||
[test]
|
||||
uniform 0 float 2
|
||||
todo(msl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (0.5, 0.3, 0.8, 0.2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user