Explanation of dFdx
To understand how these instructions work, it helps to understand the basic execution architecture of GPUs and how fragment programs map to that architecture. GPUs run a bunch of threads in ‘lock-step’ over the same program, which each thread having its own set of registers. So it fetches an instruction, then executes that instruction N … Read more