pub struct Pass {
pub batch: Batch,
pub descriptor: PassDescriptor,
pub sources: Vec<TextureSource>,
pub extent: Extent2D,
}Expand description
One target’s worth of drawing.
Cloneable so that a finished recording can be drawn into another one: the passes are taken as they are, and the recording being drawn keeps its own copy for a caller who draws it more than once.
Fields§
§batch: Batch§descriptor: PassDescriptor§sources: Vec<TextureSource>What each texture slot this pass samples refers to, in slot order.
extent: Extent2DThe size of the target this pass renders into.
Per pass rather than per recording, because a layer given bounds renders into a target the size of those bounds. The root pass always carries the recording’s extent, since that is the caller’s surface.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pass
impl RefUnwindSafe for Pass
impl Send for Pass
impl Sync for Pass
impl Unpin for Pass
impl UnsafeUnpin for Pass
impl UnwindSafe for Pass
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