pub struct PassSchedule { /* private fields */ }Implementations§
Source§impl PassSchedule
impl PassSchedule
pub fn new(convention: DepthConvention) -> Self
pub fn convention(&self) -> DepthConvention
pub fn unattached(&self) -> Option<&'static str>
pub fn names(&self) -> impl Iterator<Item = &'static str> + '_
pub fn sections(&self) -> &[Section]
pub fn register(&mut self, pass: Box<dyn FramePass>) -> Result<(), PassError>
pub fn attach( &mut self, gpu: &GpuContext, frame: FrameFormat, ) -> Result<(), PassExecutionError>
pub fn begin_frame(&mut self)
pub fn section( &mut self, name: &'static str, encoder: &mut CommandEncoder, body: impl FnOnce(&mut CommandEncoder), )
pub fn record( &mut self, stage: PassStage, encoder: &mut CommandEncoder, target: &FrameTarget<'_>, ) -> Result<(), PassExecutionError>
Sourcepub fn record_scene(
&mut self,
encoder: &mut CommandEncoder,
target: &FrameTarget<'_>,
background: Color,
) -> Result<(), PassExecutionError>
pub fn record_scene( &mut self, encoder: &mut CommandEncoder, target: &FrameTarget<'_>, background: Color, ) -> Result<(), PassExecutionError>
Replaces record for Background and Scene and includes the frame clear.
pub fn end_frame(&mut self, encoder: &mut CommandEncoder)
pub fn after_submit(&mut self)
Auto Trait Implementations§
impl Freeze for PassSchedule
impl !RefUnwindSafe for PassSchedule
impl !Send for PassSchedule
impl !Sync for PassSchedule
impl Unpin for PassSchedule
impl UnsafeUnpin for PassSchedule
impl !UnwindSafe for PassSchedule
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