3 ms·
"You couldn’t implement these functions yourself - they are magic intrinsics which are implemented in hardware" But why?
by aeonik 1y ago
"You couldn’t implement these functions yourself - they are magic intrinsics which are implemented in hardware"
But why?
- pema99 1y agoThere 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.
- Sharlin 1y agoYou 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.