mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/glsl: Implement VKD3DSIH_ROUND_NE.
This commit is contained in:
parent
308121ba04
commit
0cc0b68fb4
Notes:
Henri Verbeet
2024-09-30 21:06:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1124
@ -797,6 +797,9 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
|
||||
case VKD3DSIH_RET:
|
||||
shader_glsl_ret(gen, ins);
|
||||
break;
|
||||
case VKD3DSIH_ROUND_NE:
|
||||
shader_glsl_intrinsic(gen, ins, "roundEven");
|
||||
break;
|
||||
case VKD3DSIH_ROUND_NI:
|
||||
shader_glsl_intrinsic(gen, ins, "floor");
|
||||
break;
|
||||
|
@ -44,7 +44,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -1.0 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (-31416.0, 0.0, 0.0, 0.0)
|
||||
|
||||
[require]
|
||||
@ -52,15 +52,15 @@ shader model < 6.0
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -0.5 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (-10473.0, 0.0, 0.0, 0.0)
|
||||
|
||||
uniform 0 float4 0.0 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (1.0, 0.0, 0.0, 0.0)
|
||||
|
||||
uniform 0 float4 0.5 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (10473.0, 0.0, 0.0, 0.0)
|
||||
|
||||
[require]
|
||||
@ -88,7 +88,7 @@ probe (0, 0) rgba (10472.0, 0.0, 0.0, 0.0) 4096
|
||||
|
||||
[test]
|
||||
uniform 0 float4 1.0 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (31416.0, 0.0, 0.0, 0.0)
|
||||
|
||||
|
||||
|
@ -8,7 +8,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -0.4 -6.6 7.6 3.4
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (0.0, -7.0, 8.0, 3.0) 4
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -0.4 -6.6 7.6 3.4
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (-7.0, 8.0, 0.0, 3.0) 4
|
||||
|
||||
|
||||
@ -42,5 +42,5 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 -1 0 2 10
|
||||
todo(glsl) draw quad
|
||||
draw quad
|
||||
probe (0, 0) rgba (-1.0, 0.0, 2.0, 10.0) 4
|
||||
|
Loading…
Reference in New Issue
Block a user