RenderPassColorAttachment::depth_slice
This animated example demonstrates shadow mapping.
cargo run --bin wgpu-examples shadow