mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Implement the firstbithigh() intrinsic.
This commit is contained in:
committed by
Henri Verbeet
parent
e49beca0d5
commit
e6d840170d
Notes:
Henri Verbeet
2025-09-22 11:46:20 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/965
@@ -393,6 +393,11 @@ bool hlsl_type_is_signed_integer(const struct hlsl_type *type)
|
||||
vkd3d_unreachable();
|
||||
}
|
||||
|
||||
bool hlsl_type_is_unsigned_integer(const struct hlsl_type *type)
|
||||
{
|
||||
return hlsl_type_is_integer(type) && !hlsl_type_is_signed_integer(type);
|
||||
}
|
||||
|
||||
bool hlsl_type_is_integer(const struct hlsl_type *type)
|
||||
{
|
||||
VKD3D_ASSERT(hlsl_is_numeric_type(type));
|
||||
@@ -3724,6 +3729,7 @@ const char *debug_hlsl_expr_op(enum hlsl_ir_expr_op op)
|
||||
[HLSL_OP1_BIT_NOT] = "~",
|
||||
[HLSL_OP1_CAST] = "cast",
|
||||
[HLSL_OP1_CEIL] = "ceil",
|
||||
[HLSL_OP1_CLZ] = "clz",
|
||||
[HLSL_OP1_COS] = "cos",
|
||||
[HLSL_OP1_COS_REDUCED] = "cos_reduced",
|
||||
[HLSL_OP1_COUNTBITS] = "countbits",
|
||||
@@ -3736,6 +3742,7 @@ const char *debug_hlsl_expr_op(enum hlsl_ir_expr_op op)
|
||||
[HLSL_OP1_EXP2] = "exp2",
|
||||
[HLSL_OP1_F16TOF32] = "f16tof32",
|
||||
[HLSL_OP1_F32TOF16] = "f32tof16",
|
||||
[HLSL_OP1_FIND_MSB] = "find_msb",
|
||||
[HLSL_OP1_FLOOR] = "floor",
|
||||
[HLSL_OP1_FRACT] = "fract",
|
||||
[HLSL_OP1_ISINF] = "isinf",
|
||||
|
||||
Reference in New Issue
Block a user