pub enum BufferDescriptorType {
Storage {
read_only: bool,
},
Uniform,
}
Expand description
Specific type of a buffer.
Variants§
Storage
Storage buffers allow load, store, and atomic operations.
Uniform
Uniform buffers provide constant data to be accessed in a shader.
Trait Implementations§
Source§impl Clone for BufferDescriptorType
impl Clone for BufferDescriptorType
Source§fn clone(&self) -> BufferDescriptorType
fn clone(&self) -> BufferDescriptorType
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 BufferDescriptorType
impl Debug for BufferDescriptorType
Source§impl Hash for BufferDescriptorType
impl Hash for BufferDescriptorType
Source§impl Ord for BufferDescriptorType
impl Ord for BufferDescriptorType
Source§fn cmp(&self, other: &BufferDescriptorType) -> Ordering
fn cmp(&self, other: &BufferDescriptorType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BufferDescriptorType
impl PartialEq for BufferDescriptorType
Source§impl PartialOrd for BufferDescriptorType
impl PartialOrd for BufferDescriptorType
impl Copy for BufferDescriptorType
impl Eq for BufferDescriptorType
impl StructuralPartialEq for BufferDescriptorType
Auto Trait Implementations§
impl Freeze for BufferDescriptorType
impl RefUnwindSafe for BufferDescriptorType
impl Send for BufferDescriptorType
impl Sync for BufferDescriptorType
impl Unpin for BufferDescriptorType
impl UnwindSafe for BufferDescriptorType
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