pub enum BindingKind {
Storage {
read_only: bool,
},
Uniform,
StorageTexture,
}Expand description
Kind of resource a binding declares, as the engine needs it for a layout entry.
Variants§
Storage
A storage buffer, var<storage, read> when read_only and var<storage, read_write> otherwise.
Uniform
A uniform block, var<uniform>.
StorageTexture
A storage texture, texture_storage_2d.
Implementations§
Source§impl BindingKind
impl BindingKind
Sourcepub fn is_storage_buffer(self) -> bool
pub fn is_storage_buffer(self) -> bool
Returns whether this counts against max_storage_buffers_per_shader_stage.
A uniform and a storage texture each count against their own limit.
Trait Implementations§
Source§impl Clone for BindingKind
impl Clone for BindingKind
impl Copy for BindingKind
Source§impl Debug for BindingKind
impl Debug for BindingKind
impl Eq for BindingKind
Source§impl PartialEq for BindingKind
impl PartialEq for BindingKind
impl StructuralPartialEq for BindingKind
Auto Trait Implementations§
impl Freeze for BindingKind
impl RefUnwindSafe for BindingKind
impl Send for BindingKind
impl Sync for BindingKind
impl Unpin for BindingKind
impl UnsafeUnpin for BindingKind
impl UnwindSafe for BindingKind
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