News for hackers. Stuff that matters.
Re:Why is NaN not equal to NaN? by letney on Wednesday May 14, 2014 @10:10PM (#7747595)
As a C/C++ and graphics programmer, I love NaN. It allows saving space by not having to carry an extra is_valid boolean for uninitialized values or regions of data that are masked.

For textures, they are great as they don't interpolate w/ nearby neighbors and properly discard fragments & vertices without the aforementioned cost of an extra boolean attribute.

There are no comments on this comment yet.