#[non_exhaustive]pub enum Resource<'a> {
Buffer {
buffer: &'a Buffer,
offset: u64,
size: u64,
},
Texture(&'a TextureView),
StorageTexture(&'a TextureView),
Sampler(&'a Sampler),
}Expand description
a resource bound into a BindGroup
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Buffer
a buffer range (size 0: to the end); offsets aligned to Limits::min_*_offset_alignment
Texture(&'a TextureView)
StorageTexture(&'a TextureView)
Sampler(&'a Sampler)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Resource<'a>
impl<'a> !UnwindSafe for Resource<'a>
impl<'a> Forget for Resource<'a>
impl<'a> Freeze for Resource<'a>
impl<'a> Send for Resource<'a>
impl<'a> Sync for Resource<'a>
impl<'a> Unpin for Resource<'a>
impl<'a> UnsafeUnpin for Resource<'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