Assigning FLT_MAX to a float4 has no affect...

Discussion created by griffin2000 on Oct 7, 2009
Latest reply on Oct 8, 2009 by MicahVillmow

Assigning FLT_MAX or MAXFLOAT to a float4 variable has no effect.



   myBuffer->a=(float4)(FLT_MAX, FLT_MAX, FLT_MAX, FLT_MAX);

Will result in no errors, but the value of "a" in the buffer will (1,2,3,4).

Is this another optional feature that needs to be supported (and can be tested for with the appropriate call to clGetDeviceInfo), or is this a problem with the implementation ?


EDIT: Changed my typo, those were meant to be float4s