Movement against float.init being nan
jordan4ibanez
jordan4ibanez002 at gmail.com
Sun Aug 21 06:37:53 UTC 2022
On Sunday, 21 August 2022 at 06:23:39 UTC, 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.
Yes this is exactly the truth. GLSL has integer, but no matter
what you do, no matter how hard you try, When you go to the final
output it will always be sent out as a floating point with
``gl_Position``.
More information about the Digitalmars-d
mailing list