pub struct PassContribution {
pub descriptor: PassDescriptor,
pub command_buffer: CommandBufferId,
}Expand description
A render pass an agent contributes for this frame.
Instead of locking the shared SharedFrameGraph to add_pass directly,
a recording agent writes its contribution into a per-layer slot on its
OutputDeck (ScenePassSlot,
UiPassSlot, OverlayPassSlot). The engine folds those slots into the
graph in a fixed layer order (scene → ui → overlay) after the agent wave —
preserving the previous insertion order while freeing the agents from the
Mutex<FrameGraph>, so they can run concurrently.
Fields§
§descriptor: PassDescriptorThe pass’s resource read/write declaration.
command_buffer: CommandBufferIdThe finished command buffer recorded for the pass.
Auto Trait Implementations§
impl Freeze for PassContribution
impl RefUnwindSafe for PassContribution
impl Send for PassContribution
impl Sync for PassContribution
impl Unpin for PassContribution
impl UnsafeUnpin for PassContribution
impl UnwindSafe for PassContribution
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