pub struct BoundResources { /* private fields */ }Expand description
Per-frame map of engawa ResourceId → live wgpu handle.
The consumer (mado, future ayatsuri) populates this before
calling dispatch_with. Engawa already validated at
compile time that every node references a resource that’s
either an input or another node’s output; the dispatcher
validates that every referenced resource has a BoundResource
entry at dispatch time.
Implementations§
Source§impl BoundResources
impl BoundResources
pub fn new() -> Self
pub fn with(self, id: impl Into<ResourceId>, resource: BoundResource) -> Self
pub fn insert(&mut self, id: impl Into<ResourceId>, resource: BoundResource)
pub fn get(&self, id: &ResourceId) -> Option<&BoundResource>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for BoundResources
impl Clone for BoundResources
Source§fn clone(&self) -> BoundResources
fn clone(&self) -> BoundResources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BoundResources
impl Default for BoundResources
Source§fn default() -> BoundResources
fn default() -> BoundResources
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BoundResources
impl !UnwindSafe for BoundResources
impl Freeze for BoundResources
impl Send for BoundResources
impl Sync for BoundResources
impl Unpin for BoundResources
impl UnsafeUnpin for BoundResources
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