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,volume_sample_grad_f()is equivalent tovolume_sample_grad()withdtype=float.- Returns:
The sampled
warp.float32value.
See
volume_sample_grad()for a usage example.