#[repr(u32)]pub enum StorageClass {
UniformConstant = 0,
Input = 1,
Uniform = 2,
Output = 3,
Workgroup = 4,
CrossWorkgroup = 5,
Private = 6,
Function = 7,
Generic = 8,
PushConstant = 9,
AtomicCounter = 10,
Image = 11,
}
Variants§
UniformConstant = 0
Input = 1
Uniform = 2
Output = 3
Workgroup = 4
CrossWorkgroup = 5
Private = 6
Function = 7
Generic = 8
PushConstant = 9
AtomicCounter = 10
Image = 11
Implementations§
Source§impl StorageClass
impl StorageClass
pub fn from(val: u32) -> Option<StorageClass>
Trait Implementations§
Source§impl Clone for StorageClass
impl Clone for StorageClass
Source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StorageClass
impl Debug for StorageClass
Source§impl Hash for StorageClass
impl Hash for StorageClass
Source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
impl Copy for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations§
impl Freeze for StorageClass
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnwindSafe for StorageClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)