pub struct PassBuilder<'graph, 'a> { /* private fields */ }Expand description
Builder for declaring a pass’s resource dependencies during eager graph construction.
Obtained exclusively inside the closure passed to
RenderGraph::add_pass. All topology wiring — resource creation, read
/ write declarations, and alias production — happens immediately and
is captured before the closure returns.
Implementations§
Source§impl PassBuilder<'_, '_>
impl PassBuilder<'_, '_>
pub fn create_texture( &mut self, name: &'static str, desc: TextureDesc, ) -> TextureNodeId
pub fn read_external_texture( &mut self, name: &'static str, desc: TextureDesc, view: &Tracked<TextureView>, ) -> TextureNodeId
pub fn write_external_texture( &mut self, name: &'static str, desc: TextureDesc, view: &Tracked<TextureView>, ) -> TextureNodeId
pub fn read_texture(&mut self, id: TextureNodeId) -> TextureNodeId
pub fn write_texture(&mut self, id: TextureNodeId) -> TextureNodeId
pub fn mutate_texture( &mut self, input_id: TextureNodeId, new_name: &'static str, ) -> TextureNodeId
pub fn mark_side_effect(&mut self)
Auto Trait Implementations§
impl<'graph, 'a> Freeze for PassBuilder<'graph, 'a>
impl<'graph, 'a> !RefUnwindSafe for PassBuilder<'graph, 'a>
impl<'graph, 'a> !Send for PassBuilder<'graph, 'a>
impl<'graph, 'a> !Sync for PassBuilder<'graph, 'a>
impl<'graph, 'a> Unpin for PassBuilder<'graph, 'a>
impl<'graph, 'a> UnsafeUnpin for PassBuilder<'graph, 'a>
impl<'graph, 'a> !UnwindSafe for PassBuilder<'graph, 'a>
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