pub struct DepthRoutine<M> { /* private fields */ }
Expand description
Depth rendering routine.
To use this with your material, call DepthRoutine::new
for every
Material.
Call the appropriate add-to-graph function for each archetype with the proper settings set for that archetype.
Implementations§
Source§impl<M: DepthRenderableMaterial> DepthRoutine<M>
impl<M: DepthRenderableMaterial> DepthRoutine<M>
pub fn new( renderer: &Renderer, data_core: &RendererDataCore, interfaces: &WholeFrameInterfaces, per_material: &PerMaterialArchetypeInterface<M>, unclipped_depth_supported: bool, ) -> Self
pub fn add_prepass_to_graph<'node>( &'node self, graph: &mut RenderGraph<'node>, forward_uniform_bg: DataHandle<BindGroup>, culled: DataHandle<PerMaterialArchetypeData>, samples: SampleCount, cutout: bool, color: RenderTargetHandle, resolve: Option<RenderTargetHandle>, depth: RenderTargetHandle, )
pub fn add_shadow_rendering_to_graph<'node>( &'node self, graph: &mut RenderGraph<'node>, cutout: bool, shadow_index: usize, shadow_uniform_bg: DataHandle<BindGroup>, culled: DataHandle<PerMaterialArchetypeData>, )
Auto Trait Implementations§
impl<M> Freeze for DepthRoutine<M>
impl<M> !RefUnwindSafe for DepthRoutine<M>
impl<M> Send for DepthRoutine<M>where
M: Send,
impl<M> Sync for DepthRoutine<M>where
M: Sync,
impl<M> Unpin for DepthRoutine<M>where
M: Unpin,
impl<M> !UnwindSafe for DepthRoutine<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more