pub enum BoundResource {
Texture {
view: TextureView,
format: TextureFormat,
},
Uniform(Buffer),
Storage(Buffer),
Sampler(Sampler),
}Expand description
Live wgpu handle wrapped in a tagged enum so the dispatcher can match the bind type the Material declared. Operators build this from their own wgpu resources at dispatch time.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for BoundResource
impl Clone for BoundResource
Source§fn clone(&self) -> BoundResource
fn clone(&self) -> BoundResource
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BoundResource
impl !UnwindSafe for BoundResource
impl Freeze for BoundResource
impl Send for BoundResource
impl Sync for BoundResource
impl Unpin for BoundResource
impl UnsafeUnpin for BoundResource
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