Vibrant 1.5
Don
nospam at nospam.com
Tue Sep 21 05:06:24 PDT 2010
#ponce wrote:
>> Half floats, I don't know if they are better than user defined floats of Phobos2:
>> http://bitbucket.org/ponce/vibrant/src/tip/trunk/common2/math/half.d
>
> half float are useful for 3D because it saves bandwidth with the graphic cards. Less for other purposes.
> I think common2 allow to use vec3!(half) but lack of implicit conversion makes it less useful than the same design in C++.
My guess is that what you really want, is pack-and-unpack routines for
whole arrays. half[0..n*2] <--> float[0..n]
It's a fascinating problem. I bet it can be done very efficiently.
More information about the Digitalmars-d-announce
mailing list