warp.volume\_sample\_grad\_f ============================ .. function:: warp._src.lang.volume_sample_grad_f(id: uint64, uvw: vec3f, sampling_mode: int32, grad: vec3f) -> float .. hlist:: :columns: 8 * Kernel * Python * Differentiable Sample the :class:`warp.float32` volume given by ``id`` and its gradient at the index-space point ``uvw``. ``grad`` receives the gradient of the sampled value with respect to the index-space coordinates ``uvw`` (a :class:`warp.vec3`, zero for :attr:`warp.Volume.CLOSEST`). In kernels, ``volume_sample_grad_f()`` is equivalent to :func:`~warp.volume_sample_grad` with ``dtype=float``. :returns: The sampled :class:`warp.float32` value. See :func:`~warp.volume_sample_grad` for a usage example.