pub fn with_depth(mut self) -> Self {
        self.desc.depth_stencil = Some(wgpu::DepthStencilState {
            depth_write_enabled: true,
            depth_compare: wgpu::CompareFunction::Less,
            stencil: wgpu::StencilState::default(),
            format: wgpu::TextureFormat::Depth32Float,
            bias: wgpu::DepthBiasState::default(),
        });
        self
    }
/// Declare a depth state for the pipeline. MUST be called if the pipeline is
/// set for a render pass with depth attachment
Declare a depth state for the pipeline. MUST be called if the pipeline is
set for a render pass with depth attachment
Declare a depth state for the pipeline . MUST be called if the pipeline is set for a render pass with depth attachment
pub fn with_depth(mut self) -> Self {
        self.desc.depth_stencil = Some(wgpu::DepthStencilState {
            depth_write_enabled: true,
            depth_compare: wgpu::CompareFunction::Less,
            stencil: wgpu::StencilState::default(),
            format: wgpu::TextureFormat::Depth32Float,
            bias: wgpu::DepthBiasState::default(),
        });
        self
    }
pub fn with_depth ( mut self ) -> Self { self . desc . depth_stencil = Some ( wgpu :: DepthStencilState { depth_write_enabled : true , depth_compare : wgpu :: CompareFunction :: Less , stencil : wgpu :: StencilState :: default ( ) , format : wgpu :: TextureFormat :: Depth32Float , bias : wgpu :: DepthBiasState :: default ( ) , } ) ; self }
Declare a depth state for the pipeline.
Declare a depth state for the pipeline .
mut self
mut self