News for hackers. Stuff that matters.
Re:Mipmap selection in too much detail by aeonik on Sunday May 11, 2025 @09:36PM (#43958851)

    "You couldn’t implement these functions yourself - they are magic intrinsics which are implemented in hardware"
But why?
Re:Mipmap selection in too much detail by pema99 on Monday May 12, 2025 @01:17PM (#43965339)
There simply isn't another way to access registers from one 'thread' on another thread without using an intrinsic. You need that to calculate finite differences. For a long time, the only option was ddx()/ddy(). Now we also wave intrinsics, which you couldn't implement yourself either.
Re:Mipmap selection in too much detail by Sharlin on Wednesday May 14, 2025 @07:40AM (#43983284)
You need to access the neighboring pixels (fragments) in a quad to compute d_dx and d_dy, but quads are an implementation detail not exposed to the programmer.