pub enum BufferViewCreationError {
OomError(OomError),
BufferMissingUsage,
OffsetNotAligned {
offset: DeviceSize,
required_alignment: DeviceSize,
},
RangeNotAligned {
range: DeviceSize,
required_alignment: DeviceSize,
},
UnsupportedFormat,
MaxTexelBufferElementsExceeded,
}
Expand description
Error that can happen when creating a buffer view.
Variants
OomError(OomError)
Out of memory.
BufferMissingUsage
The buffer was not created with one of the storage_texel_buffer
or
uniform_texel_buffer
usages.
OffsetNotAligned
The offset within the buffer is not a multiple of the required alignment.
RangeNotAligned
The range within the buffer is not a multiple of the required alignment.
UnsupportedFormat
The requested format is not supported for this usage.
MaxTexelBufferElementsExceeded
The max_texel_buffer_elements
limit has been exceeded.
Trait Implementations
sourceimpl Clone for BufferViewCreationError
impl Clone for BufferViewCreationError
sourcefn clone(&self) -> BufferViewCreationError
fn clone(&self) -> BufferViewCreationError
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 BufferViewCreationError
impl Debug for BufferViewCreationError
sourceimpl Display for BufferViewCreationError
impl Display for BufferViewCreationError
sourceimpl Error for BufferViewCreationError
impl Error for BufferViewCreationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OomError> for BufferViewCreationError
impl From<OomError> for BufferViewCreationError
sourcefn from(err: OomError) -> BufferViewCreationError
fn from(err: OomError) -> BufferViewCreationError
Performs the conversion.
impl Copy for BufferViewCreationError
Auto Trait Implementations
impl RefUnwindSafe for BufferViewCreationError
impl Send for BufferViewCreationError
impl Sync for BufferViewCreationError
impl Unpin for BufferViewCreationError
impl UnwindSafe for BufferViewCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more