mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/msl: Implement VKD3DSIH_LOG.
This commit is contained in:
parent
b1e6dbe83f
commit
64ea033c81
Notes:
Henri Verbeet
2024-12-04 14:44:01 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1294
@ -609,6 +609,9 @@ static void msl_handle_instruction(struct msl_generator *gen, const struct vkd3d
|
|||||||
case VKD3DSIH_UTOF:
|
case VKD3DSIH_UTOF:
|
||||||
msl_cast(gen, ins, "float");
|
msl_cast(gen, ins, "float");
|
||||||
break;
|
break;
|
||||||
|
case VKD3DSIH_LOG:
|
||||||
|
msl_intrinsic(gen, ins, "log2");
|
||||||
|
break;
|
||||||
case VKD3DSIH_MOV:
|
case VKD3DSIH_MOV:
|
||||||
msl_mov(gen, ins);
|
msl_mov(gen, ins);
|
||||||
break;
|
break;
|
||||||
|
@ -8,7 +8,7 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 2.0 4.0 5.0 0.4
|
uniform 0 float4 2.0 4.0 5.0 0.4
|
||||||
todo(msl) draw quad
|
draw quad
|
||||||
probe (0, 0) rgba (1.0, 2.0, 2.32192802, -1.32192802) 1
|
probe (0, 0) rgba (1.0, 2.0, 2.32192802, -1.32192802) 1
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
@ -21,7 +21,7 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 10.0 100.0 1.0 0.1
|
uniform 0 float4 10.0 100.0 1.0 0.1
|
||||||
todo(msl) draw quad
|
draw quad
|
||||||
probe (0, 0) rgba (1.0, 2.0, 0.0, -1.0) 1
|
probe (0, 0) rgba (1.0, 2.0, 0.0, -1.0) 1
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
@ -34,5 +34,5 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 3.0 10.0 1.0 0.1
|
uniform 0 float4 3.0 10.0 1.0 0.1
|
||||||
todo(msl) draw quad
|
draw quad
|
||||||
probe (0, 0) rgba (1.0986123, 2.302585, 0.0, -2.302585) 2
|
probe (0, 0) rgba (1.0986123, 2.302585, 0.0, -2.302585) 2
|
||||||
|
@ -8,7 +8,7 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 float4 0.4 0.8 2.5 2.0
|
uniform 0 float4 0.4 0.8 2.5 2.0
|
||||||
todo(msl) draw quad
|
draw quad
|
||||||
probe (0, 0) rgba (0.512, 0.101192884, 0.64, 0.25) 4
|
probe (0, 0) rgba (0.512, 0.101192884, 0.64, 0.25) 4
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user