pub enum BufferDescriptorFormat {
Structured {
dynamic_offset: bool,
},
Texel,
}
Expand description
Format of a buffer.
Variants§
Structured
The buffer is interpreted as a structure defined in a shader.
Fields
Texel
The buffer is interpreted as a 1-D array of texels, which undergo format conversion when loaded in a shader.
Trait Implementations§
Source§impl Clone for BufferDescriptorFormat
impl Clone for BufferDescriptorFormat
Source§fn clone(&self) -> BufferDescriptorFormat
fn clone(&self) -> BufferDescriptorFormat
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 BufferDescriptorFormat
impl Debug for BufferDescriptorFormat
Source§impl Hash for BufferDescriptorFormat
impl Hash for BufferDescriptorFormat
Source§impl Ord for BufferDescriptorFormat
impl Ord for BufferDescriptorFormat
Source§fn cmp(&self, other: &BufferDescriptorFormat) -> Ordering
fn cmp(&self, other: &BufferDescriptorFormat) -> 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 BufferDescriptorFormat
impl PartialEq for BufferDescriptorFormat
Source§impl PartialOrd for BufferDescriptorFormat
impl PartialOrd for BufferDescriptorFormat
impl Copy for BufferDescriptorFormat
impl Eq for BufferDescriptorFormat
impl StructuralPartialEq for BufferDescriptorFormat
Auto Trait Implementations§
impl Freeze for BufferDescriptorFormat
impl RefUnwindSafe for BufferDescriptorFormat
impl Send for BufferDescriptorFormat
impl Sync for BufferDescriptorFormat
impl Unpin for BufferDescriptorFormat
impl UnwindSafe for BufferDescriptorFormat
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