[][src]Enum gfx_descriptor::BufferDescriptorFormat

pub enum BufferDescriptorFormat {
    Structured {
        dynamic_offset: bool,
    },
    Texel,
}

Format of a buffer.

Variants

Structured

The buffer is interpreted as a structure defined in a shader.

Fields of Structured

dynamic_offset: bool

If true, the buffer is accessed by an additional offset specified in the offsets parameter of CommandBuffer::bind_*_descriptor_sets.

Texel

The buffer is interpreted as a 1-D array of texels, which undergo format conversion when loaded in a shader.

Trait Implementations

impl Clone for BufferDescriptorFormat[src]

impl Copy for BufferDescriptorFormat[src]

impl Debug for BufferDescriptorFormat[src]

impl Eq for BufferDescriptorFormat[src]

impl Hash for BufferDescriptorFormat[src]

impl Ord for BufferDescriptorFormat[src]

impl PartialEq<BufferDescriptorFormat> for BufferDescriptorFormat[src]

impl PartialOrd<BufferDescriptorFormat> for BufferDescriptorFormat[src]

impl StructuralEq for BufferDescriptorFormat[src]

impl StructuralPartialEq for BufferDescriptorFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.