[swift-evolution] f suffix for float32 literals, h suffix for float16 literals
ralabate at gmail.com
Fri Nov 3 13:26:02 CDT 2017
I think it would be helpful for graphics programmers to specify vertex data
inline without surrounding every value with Float(4.0).
Something like this:
let vertexData = [ 1.0f, 0.0f, 0.5f, 1.0f ]
Also, it would be great if Swift had a type for half-floats to match the
let vertexData = [ 1.0h, 0.0h, 0.5h, 1.0h]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution