mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/glsl: Implement VKD3DSIH_ISHR.
This commit is contained in:
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
@ -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;
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user