vkd3d-shader/glsl: Implement VKD3DSIH_ISHR.

This commit is contained in:
Henri Verbeet 2024-09-29 20:04:35 +02:00
parent 7f1c78f8e2
commit babbf11d52
Notes: Henri Verbeet 2024-10-02 22:39:09 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1140
2 changed files with 4 additions and 1 deletions

View File

@ -828,6 +828,9 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
case VKD3DSIH_ISHL: case VKD3DSIH_ISHL:
shader_glsl_binop(gen, ins, "<<"); shader_glsl_binop(gen, ins, "<<");
break; break;
case VKD3DSIH_ISHR:
shader_glsl_binop(gen, ins, ">>");
break;
case VKD3DSIH_LTO: case VKD3DSIH_LTO:
shader_glsl_relop(gen, ins, "<", "lessThan"); shader_glsl_relop(gen, ins, "<", "lessThan");
break; break;

View File

@ -35,7 +35,7 @@ float4 main() : SV_TARGET
[test] [test]
uniform 0 uint4 1 0 0 0 uniform 0 uint4 1 0 0 0
todo(glsl) draw quad draw quad
probe (0, 0) rgba (2, -6, 2, -6) probe (0, 0) rgba (2, -6, 2, -6)
[pixel shader] [pixel shader]