diff --git a/libs/vkd3d-shader/glsl.c b/libs/vkd3d-shader/glsl.c index f585d142..33dac05a 100644 --- a/libs/vkd3d-shader/glsl.c +++ b/libs/vkd3d-shader/glsl.c @@ -828,6 +828,9 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen, case VKD3DSIH_ISHL: shader_glsl_binop(gen, ins, "<<"); break; + case VKD3DSIH_ISHR: + shader_glsl_binop(gen, ins, ">>"); + break; case VKD3DSIH_LTO: shader_glsl_relop(gen, ins, "<", "lessThan"); break; diff --git a/tests/hlsl/bitwise-assignment.shader_test b/tests/hlsl/bitwise-assignment.shader_test index 9c273246..df89297e 100644 --- a/tests/hlsl/bitwise-assignment.shader_test +++ b/tests/hlsl/bitwise-assignment.shader_test @@ -35,7 +35,7 @@ float4 main() : SV_TARGET [test] uniform 0 uint4 1 0 0 0 -todo(glsl) draw quad +draw quad probe (0, 0) rgba (2, -6, 2, -6) [pixel shader]