vkd3d-shader/glsl: Implement VKD3DSIH_GEO.

This commit is contained in:
Henri Verbeet 2024-04-27 00:48:02 +02:00
parent 28ef331704
commit 36c08b47e9
Notes: Henri Verbeet 2024-09-23 15:56:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1097
2 changed files with 4 additions and 1 deletions

View File

@ -614,6 +614,9 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
case VKD3DSIH_DIV:
shader_glsl_binop(gen, ins, "/");
break;
case VKD3DSIH_GEO:
shader_glsl_relop(gen, ins, ">=", "greaterThanEqual");
break;
case VKD3DSIH_INE:
case VKD3DSIH_NEU:
shader_glsl_relop(gen, ins, "!=", "notEqual");

View File

@ -9,7 +9,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 5.0 -2.6 3.0 2.0
uniform 4 float4 1.0 -4.3 3.0 4.0
todo(glsl) draw quad
draw quad
probe (0, 0) rgba (0.0, 0.0, 1.0, 1.0)