Are there any 16 or 64-bit equivalents to the floatBitsToUint and uintBitsToFloat functions?
I’m mainly working with GLSL that compiles to SPIR-V through shaderc, so I was wondering if there is a way to access bitcasting instructions for this purpose.
Oh, I wasn’t awere these exist. Thank you very much!
On a related note, I had to replace
float16BitsToUint16 when using
float16_t. I suppose this is due to stricter type conversion rules.
Weird. Perhaps the function names differ depending on which extension introduces the arithmetic types…