pub enum BindGroupEntry {
Buffer {
binding: u32,
buffer: JsValue,
offset: u64,
size: Option<u64>,
},
Texture {
binding: u32,
view: JsValue,
},
Sampler {
binding: u32,
sampler: JsValue,
},
}Expand description
A single binding entry inside a BindGroupDescriptor.
Variants§
Buffer
A uniform/storage buffer binding.
Fields
Texture
A sampled texture binding.
Sampler
A sampler binding.
Trait Implementations§
Source§impl Clone for BindGroupEntry
impl Clone for BindGroupEntry
Source§fn clone(&self) -> BindGroupEntry
fn clone(&self) -> BindGroupEntry
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 Freeze for BindGroupEntry
impl RefUnwindSafe for BindGroupEntry
impl Send for BindGroupEntry
impl Sync for BindGroupEntry
impl Unpin for BindGroupEntry
impl UnsafeUnpin for BindGroupEntry
impl UnwindSafe for BindGroupEntry
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