vkd3d-shader/glsl: Implement VKD3DSIH_USHR.

This commit is contained in:
Henri Verbeet 2024-09-29 20:09:25 +02:00
parent babbf11d52
commit fc4c9b7a95
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 2 additions and 1 deletions

View File

@ -829,6 +829,7 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
shader_glsl_binop(gen, ins, "<<"); shader_glsl_binop(gen, ins, "<<");
break; break;
case VKD3DSIH_ISHR: case VKD3DSIH_ISHR:
case VKD3DSIH_USHR:
shader_glsl_binop(gen, ins, ">>"); shader_glsl_binop(gen, ins, ">>");
break; break;
case VKD3DSIH_LTO: case VKD3DSIH_LTO:

View File

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