warp.volume_sample_i#
- warp.volume_sample_i(id: uint64, uvw: vec3f) int#
Kernel
Python
Sample the
warp.int32volume given byidat the index-space pointuvw.Integer volumes only support nearest-voxel sampling, so there is no
sampling_modeargument (warp.Volume.CLOSESTis always used). This function is not differentiable.uvwis in index space (voxel coordinates) and may be fractional; it is rounded to the nearest voxel. Currently, exact halfway cases are rounded away from zero. Sampling uses the resolved volume value (seevolume_sample()).idmust identify anint32volume.- Returns:
The sampled
warp.int32value.
See
volume_sample()for a usage example.