pub struct SkyGroundPass { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for SkyGroundPass
impl Clone for SkyGroundPass
Source§fn clone(&self) -> SkyGroundPass
fn clone(&self) -> SkyGroundPass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FramePass for SkyGroundPass
impl FramePass for SkyGroundPass
fn name(&self) -> &'static str
fn stage(&self) -> PassStage
fn color_load(&self) -> ColorLoad
Source§fn depth_convention(&self) -> Option<DepthConvention>
fn depth_convention(&self) -> Option<DepthConvention>
None means the pass writes no depth; Some must match the frame’s convention to register.True joins the stage’s shared render pass, so
attach must build pipelines against the frame’s color and depth formats.Source§fn clear_color(&self) -> Color
fn clear_color(&self) -> Color
Read before
prepare, and only when color_load is Clear.Source§fn prepare(
&mut self,
_encoder: &mut CommandEncoder,
target: &FrameTarget<'_>,
) -> Result<()>
fn prepare( &mut self, _encoder: &mut CommandEncoder, target: &FrameTarget<'_>, ) -> Result<()>
Encoder work for a sharing pass; runs just before its render pass opens, not at frame start.
Source§fn draw(
&mut self,
pass: &mut RenderPass<'_>,
target: &FrameTarget<'_>,
) -> Result<()>
fn draw( &mut self, pass: &mut RenderPass<'_>, target: &FrameTarget<'_>, ) -> Result<()>
Runs inside the shared pass, which owns the load ops; viewport and scissor carry over from earlier draws.
fn record( &mut self, encoder: &mut CommandEncoder, target: &FrameTarget<'_>, ) -> Result<()>
fn attach(&mut self, gpu: &GpuContext, frame: FrameFormat) -> Result<()>
fn depth_read(&self) -> Option<DepthConvention>
Auto Trait Implementations§
impl Freeze for SkyGroundPass
impl !RefUnwindSafe for SkyGroundPass
impl !Send for SkyGroundPass
impl !Sync for SkyGroundPass
impl Unpin for SkyGroundPass
impl UnsafeUnpin for SkyGroundPass
impl !UnwindSafe for SkyGroundPass
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