float2 toBeQuantised(333.333, 666.666); uint half1 = f32to16(toBeQuantised.x); uint half2 = f32to16(toBeQuantised.y); uint twoHalfs = half1 | (half2 << 16);
But this doesn't make that much sense or use, in addition to what Kauna said :-)
Posted 20 August 2012 - 02:22 AM
float2 toBeQuantised(333.333, 666.666); uint half1 = f32to16(toBeQuantised.x); uint half2 = f32to16(toBeQuantised.y); uint twoHalfs = half1 | (half2 << 16);
Posted 20 August 2012 - 02:21 AM
float2 toBeQuantised(333.333, 666.666); uint half1 = f32to16(toBeQuantised.x); uint half2 = f32to16(toBeQuantised.y); uint twoHalfs = half1 | (half2 << 16);
Posted 20 August 2012 - 02:21 AM