warp.volume_sample_f#

warp.volume_sample_f(
id: uint64,
uvw: vec3f,
sampling_mode: int32,
) float#
  • Kernel

  • Python

  • Differentiable

Sample the warp.float32 volume given by id at the index-space point uvw.

uvw is in index space (voxel coordinates) and may be fractional; sampling_mode must be warp.Volume.CLOSEST or warp.Volume.LINEAR. Sampling uses the resolved volume value (see volume_sample()). id must identify a float32 volume. In kernels, volume_sample_f() is equivalent to volume_sample() with dtype=float, which documents the coordinate-frame, value-resolution, boundary, and differentiability behavior.

Returns:

The sampled warp.float32 value.

See volume_sample() for a usage example.