23 Feb
2023
23 Feb
'23
8:05 p.m.
Currently, `distance()` fails when passing `int` parameters: ``` int a, b; float4 main() : sv_target { return distance(a, b); } ``` ``` vkd3d/libs/vkd3d-shader/hlsl_sm4.c:1800: write_sm4_expr: Assertion `type_is_float(dst_type)' failed. Aborted (core dumped) ``` it is worth noting that `add_binary_arithmetic_expr()` results in a value of the common type (which is `int` if both arguments are `int`). -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/76#note_25328