Closed Novum closed 8 months ago
What GLSL compiler are you using?
glslang: halfBitsToUInt16 - same error halfBitsToUint16 - ok
I now wonder if this is a spelling mistake in the extension text instead?
| genI16Type halfBitsToInt16(genF16Type value) | Returns a signed or unsigned |
| genU16Type halfBitsToUInt16(genF16Type value) | integer value representing |
| genI32Type floatBitsToInt(genF32Type value) | the encoding of a floating |
| genU32Type floatBitsToUint(genF32Type value) | point value. The floating |
| genI64Type doubleBitsToInt64(genDType value) | point value's bit-level |
| genU64Type doubleBitsToUint64(genDType value) | representation is preserved. |
| genI16Type float16BitsToInt16(genF16Type value) | |
| genU16Type float16BitsToUint16(genF16Type value)| |
All the other ones are Uint
instead of UInt
. I was just copy/pasting the names directly from the extension spec.
GL_EXT_shader_explicit_arithmetic_types
should providegenU16Type halfBitsToUInt16(genF16Type value)
Minimal test:
Results in
'halfBitsToUInt16' : no matching overloaded function found