Enum wgpu_core::binding_model::CreateBindGroupError[][src]

pub enum CreateBindGroupError {
    Device(DeviceError),
    InvalidLayout,
    InvalidBuffer(BufferId),
    InvalidTextureView(TextureViewId),
    InvalidSampler(SamplerId),
    BindingArrayLengthMismatch {
        actual: usize,
        expected: usize,
    },
    BindingRangeTooLarge {
        buffer: BufferId,
        range: Range<BufferAddress>,
        size: u64,
    },
    BindingSizeTooSmall {
        buffer: BufferId,
        actual: u64,
        min: u64,
    },
    BindingZeroSize(BufferId),
    BindingsNumMismatch {
        actual: usize,
        expected: usize,
    },
    DuplicateBinding(u32),
    MissingBindingDeclaration(u32),
    MissingBufferUsage(MissingBufferUsageError),
    MissingTextureUsage(MissingTextureUsageError),
    MissingFeatures(Features),
    SingleBindingExpected,
    SwapChainImage,
    UnalignedBufferOffset(BufferAddress),
    UniformBufferRangeTooLarge,
    WrongBindingType {
        binding: u32,
        actual: BindingType,
        expected: &'static str,
    },
    WrongSamplerComparison,
    DepthStencilAspect,
    StorageReadWriteNotSupported(TextureFormat),
}

Variants

Device(DeviceError)
InvalidLayout
InvalidBuffer(BufferId)
InvalidTextureView(TextureViewId)
InvalidSampler(SamplerId)
BindingArrayLengthMismatch

Fields of BindingArrayLengthMismatch

actual: usizeexpected: usize
BindingRangeTooLarge

Fields of BindingRangeTooLarge

buffer: BufferIdrange: Range<BufferAddress>size: u64
BindingSizeTooSmall

Fields of BindingSizeTooSmall

buffer: BufferIdactual: u64min: u64
BindingZeroSize(BufferId)
BindingsNumMismatch

Fields of BindingsNumMismatch

actual: usizeexpected: usize
DuplicateBinding(u32)
MissingBindingDeclaration(u32)
MissingBufferUsage(MissingBufferUsageError)
MissingTextureUsage(MissingTextureUsageError)
MissingFeatures(Features)
SingleBindingExpected
SwapChainImage
UnalignedBufferOffset(BufferAddress)
UniformBufferRangeTooLarge
WrongBindingType

Fields of WrongBindingType

binding: u32actual: BindingTypeexpected: &'static str
WrongSamplerComparison
DepthStencilAspect
StorageReadWriteNotSupported(TextureFormat)

Trait Implementations

impl Clone for CreateBindGroupError[src]

impl Debug for CreateBindGroupError[src]

impl Display for CreateBindGroupError[src]

impl Error for CreateBindGroupError[src]

impl From<DeviceError> for CreateBindGroupError[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> Downcast<T> for T

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

impl<T> Instrument 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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<T> Upcast<T> for T