Skip to main content

reduce_voxel_centroids_xyz_and_average_multi_gpu

Function reduce_voxel_centroids_xyz_and_average_multi_gpu 

Source
pub fn reduce_voxel_centroids_xyz_and_average_multi_gpu(
    runtime: &WgpuRuntime,
    x: &Buffer,
    y: &Buffer,
    z: &Buffer,
    attribute_channels: &[&[f32]],
    u8_attribute_channels: &[&[u8]],
    segments: &GpuVoxelSegments,
) -> SpatialResult<(Vec<f32>, Vec<f32>, Vec<f32>, Vec<Vec<f32>>, Vec<Vec<u8>>)>
Expand description

Averages xyz and multiple f32/u8 attribute channels with one GPU submit/readback.