converting Golang float32 to half-precision float (GLSL float16) as uint16

后端 未结 0 1027
醉梦人生
醉梦人生 2021-02-05 03:37

I need to pass some data over from Go to an \'300 es\' shader. The data consists of two uint16s packed into a uint32. Each uint16 represents a half-precision float (float16).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题