warp.volume_sample_grad_f#
- warp.volume_sample_grad_f( ) float#
Kernel
Python
Differentiable
Sample the
warp.float32volume given byidand its gradient at the index-space pointuvw.gradreceives the gradient of the sampled value with respect to the index-space coordinatesuvw(awarp.vec3, zero forwarp.Volume.CLOSEST). In kernels, equivalent tovolume_sample_grad()withdtype=float.See
volume_sample_grad()for a usage example.