#ponce wrote:
vec3h a = vec3h(cast(half)1.f, cast(half)2.f, cast(half)3.f);

In C++ I can make the half type and create vec3h with

vec3h a = vec3h(1, 2.f, 3);

because so much thing are implicit.

I heard stories of half-float => float conversions being the bottleneck

I meant float -> half-float


My friend Google found some SSE2 code which does float->half in 3.5 cycles. Not too bad.

http://www.devmaster.net/forums/showthread.php?t=10924

Reply via email to