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
iPhone GPU:

let vertexData = [ 1.0h, 0.0h, 0.5h, 1.0h]


Thanks!
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to