Movement against float.init being nan

Walter Bright newshound2 at digitalmars.com
Sun Aug 21 15:27:30 UTC 2022


On 8/20/2022 11:23 PM, Mike Parker wrote:
> On Sunday, 21 August 2022 at 03:26:55 UTC, Walter Bright wrote:
>> On 8/20/2022 6:19 AM, Hipreme wrote:
>>> Drawing with float is required a lot on modern drawing API.
>>
>> I find this surprising. My experience with floating point coordinates is you 
>> can never quite get the pixels aligned, due to rounding problems.
> 
> Graphics APIs have been using floating point for decades now. GPUs are optimized 
> for it. You'll still see 2D APIs around now and again with an integer-based 
> public API, but internally they're sending floats to the GPU.

I guess I stand corrected :-)


More information about the Digitalmars-d mailing list