mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07: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:
committed by
Alexandre Julliard
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);
|
write_sm4_unary_op(buffer, VKD3D_SM4_OP_LOG, &expr->node, arg1, 0);
|
||||||
break;
|
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:
|
case HLSL_OP1_NEG:
|
||||||
switch (dst_type->base_type)
|
switch (dst_type->base_type)
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ float4 main() : SV_TARGET
|
|||||||
}
|
}
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
todo draw quad
|
draw quad
|
||||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
@ -75,7 +75,7 @@ float4 main() : SV_TARGET
|
|||||||
}
|
}
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
todo draw quad
|
draw quad
|
||||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
@ -128,7 +128,7 @@ float4 main() : SV_TARGET
|
|||||||
}
|
}
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
todo draw quad
|
draw quad
|
||||||
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
probe all rgba (0.0, 0.0, 0.0, 1.0)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
|
Reference in New Issue
Block a user