On Sat Sep 9 13:52:28 2023 +0000, Nikolay Sivov wrote:
Right, for half arguments it returns half result, judging by test() overload it picks. So that probably means I actually do need a template to produce different return type. It's also annoying if internal variables can't be kept as floats.
Yeah, it's quite unfortunate. Though notice that in https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/310#note_43922 a kind of solution was suggested for avoiding writing the type too many times. We might even introduce some helper doing `sprintf()`, compilation and memory handling all at once.