Enum gfx_hal::pso::BufferDescriptorFormat
source · [−]pub enum BufferDescriptorFormat {
Structured {
dynamic_offset: bool,
},
Texel,
}
Expand description
Format of a buffer.
Variants
Structured
Fields
dynamic_offset: bool
If true, the buffer is accessed by an additional offset specified in
the offsets
parameter of CommandBuffer::bind_*_descriptor_sets
.
The buffer is interpreted as a structure defined in a shader.
Texel
The buffer is interpreted as a 1-D array of texels, which undergo format conversion when loaded in a shader.
Trait Implementations
sourceimpl Clone for BufferDescriptorFormat
impl Clone for BufferDescriptorFormat
sourcefn clone(&self) -> BufferDescriptorFormat
fn clone(&self) -> BufferDescriptorFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BufferDescriptorFormat
impl Debug for BufferDescriptorFormat
sourceimpl Hash for BufferDescriptorFormat
impl Hash for BufferDescriptorFormat
sourceimpl Ord for BufferDescriptorFormat
impl Ord for BufferDescriptorFormat
sourceimpl PartialEq<BufferDescriptorFormat> for BufferDescriptorFormat
impl PartialEq<BufferDescriptorFormat> for BufferDescriptorFormat
sourcefn eq(&self, other: &BufferDescriptorFormat) -> bool
fn eq(&self, other: &BufferDescriptorFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BufferDescriptorFormat) -> bool
fn ne(&self, other: &BufferDescriptorFormat) -> bool
This method tests for !=
.
sourceimpl PartialOrd<BufferDescriptorFormat> for BufferDescriptorFormat
impl PartialOrd<BufferDescriptorFormat> for BufferDescriptorFormat
sourcefn partial_cmp(&self, other: &BufferDescriptorFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &BufferDescriptorFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for BufferDescriptorFormat
impl Eq for BufferDescriptorFormat
impl StructuralEq for BufferDescriptorFormat
impl StructuralPartialEq for BufferDescriptorFormat
Auto Trait Implementations
impl RefUnwindSafe for BufferDescriptorFormat
impl Send for BufferDescriptorFormat
impl Sync for BufferDescriptorFormat
impl Unpin for BufferDescriptorFormat
impl UnwindSafe for BufferDescriptorFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more