Enum vulkano::buffer::view::BufferViewCreationError
source · pub enum BufferViewCreationError {
OomError(OomError),
WrongBufferUsage,
WrongBufferAlignment,
UnsupportedFormat,
MaxTexelBufferElementsExceeded,
}
Expand description
Error that can happen when creating a buffer view.
Variants
OomError(OomError)
Out of memory.
WrongBufferUsage
The buffer was not creating with one of the storage_texel_buffer
or
uniform_texel_buffer
usages.
WrongBufferAlignment
The offset within the buffer is not a multiple of the min_texel_buffer_offset_alignment
limit.
UnsupportedFormat
The requested format is not supported for this usage.
MaxTexelBufferElementsExceeded
The maximum number of elements in the buffer view 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 moresourceimpl Debug for BufferViewCreationError
impl Debug for BufferViewCreationError
sourceimpl Display for BufferViewCreationError
impl Display for BufferViewCreationError
sourceimpl Error for BufferViewCreationError
impl Error for BufferViewCreationError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<OomError> for BufferViewCreationError
impl From<OomError> for BufferViewCreationError
sourcefn from(err: OomError) -> BufferViewCreationError
fn from(err: OomError) -> BufferViewCreationError
Converts to this type from the input type.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.