mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Write SM4 logic not instructions.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3e88a46d4c
commit
02d92c9af6
@ -1648,6 +1648,11 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
|
||||
write_sm4_unary_op(buffer, VKD3D_SM4_OP_LOG, &expr->node, arg1, 0);
|
||||
break;
|
||||
|
||||
case HLSL_OP1_LOGIC_NOT:
|
||||
assert(dst_type->base_type == HLSL_TYPE_BOOL);
|
||||
write_sm4_unary_op(buffer, VKD3D_SM4_OP_NOT, &expr->node, arg1, 0);
|
||||
break;
|
||||
|
||||
case HLSL_OP1_NEG:
|
||||
switch (dst_type->base_type)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ float4 main() : SV_TARGET
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
draw quad
|
||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
@ -75,7 +75,7 @@ float4 main() : SV_TARGET
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
draw quad
|
||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
@ -128,7 +128,7 @@ float4 main() : SV_TARGET
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
draw quad
|
||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
|
Loading…
Reference in New Issue
Block a user