https://hgpu.org/?p=6402
Symbolic Differentiation in GPU Shaders