vkd3d-shader/glsl: Implement VKD3DSIH_ULT.

This commit is contained in:
Henri Verbeet 2024-10-03 15:50:01 +02:00
parent 27eb3c07ad
commit bc4aacd21e
Notes: Henri Verbeet 2024-10-09 13:19:34 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1162
2 changed files with 3 additions and 2 deletions

View File

@ -1248,6 +1248,7 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen,
break; break;
case VKD3DSIH_ILT: case VKD3DSIH_ILT:
case VKD3DSIH_LTO: case VKD3DSIH_LTO:
case VKD3DSIH_ULT:
shader_glsl_relop(gen, ins, "<", "lessThan"); shader_glsl_relop(gen, ins, "<", "lessThan");
break; break;
case VKD3DSIH_IMAX: case VKD3DSIH_IMAX:

View File

@ -610,11 +610,11 @@ float4 main() : sv_target
[test] [test]
if(sm<4) uniform 0 float4 0 0 3 1 if(sm<4) uniform 0 float4 0 0 3 1
if(sm>=4) uniform 0 uint4 0 0 3 1 if(sm>=4) uniform 0 uint4 0 0 3 1
todo(glsl) draw quad draw quad
probe (0, 0) rgba (304.0, 305.0, 306.0, 307.0) probe (0, 0) rgba (304.0, 305.0, 306.0, 307.0)
if(sm<4) uniform 0 float4 1 0 3 1 if(sm<4) uniform 0 float4 1 0 3 1
if(sm>=4) uniform 0 uint4 1 0 3 1 if(sm>=4) uniform 0 uint4 1 0 3 1
todo(glsl) draw quad draw quad
probe (0, 0) rgba (3.0, 4.0, 5.0, 6.0) probe (0, 0) rgba (3.0, 4.0, 5.0, 6.0)
[require] [require]