1 2 3 4 5 6 7 8 9 10 11
use crate::texture::Texture; /// Z-Depth buffer. #[derive(Debug)] pub struct DepthBuffer { pub texture: Texture, } impl DepthBuffer { pub const FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float; }