Function compute_downsample_depth_pyramid

Source
pub fn compute_downsample_depth_pyramid(slab: &mut [u32], global_id: UVec3)
Expand description

Downsample from DepthPyramidDescriptor::mip_level-1 into DepthPyramidDescriptor::mip_level.

It is assumed that a DepthPyramidDescriptor is stored at index 0 in the given slab.

The DepthPyramidDescriptor’s mip_level field will point to that of the mip level being downsampled to (the mip level being written into).

This shader should be called in a loop from from 1..mip_count.