pub enum OomError {
OutOfHostMemory,
OutOfDeviceMemory,
}
Expand description
Error type returned by most Vulkan functions.
Variants
OutOfHostMemory
There is no memory available on the host (ie. the CPU, RAM, etc.).
OutOfDeviceMemory
There is no memory available on the device (ie. video memory).
Trait Implementations
sourceimpl Error for OomError
impl Error for OomError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
sourceimpl From<OomError> for AcquireError
impl From<OomError> for AcquireError
sourcefn from(err: OomError) -> AcquireError
fn from(err: OomError) -> AcquireError
Converts to this type from the input type.
sourceimpl From<OomError> for BufferCreationError
impl From<OomError> for BufferCreationError
sourcefn from(err: OomError) -> BufferCreationError
fn from(err: OomError) -> BufferCreationError
Converts to this type from the input type.
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.
sourceimpl From<OomError> for BuildError
impl From<OomError> for BuildError
sourcefn from(err: OomError) -> BuildError
fn from(err: OomError) -> BuildError
Converts to this type from the input type.
sourceimpl From<OomError> for CapabilitiesError
impl From<OomError> for CapabilitiesError
sourcefn from(err: OomError) -> CapabilitiesError
fn from(err: OomError) -> CapabilitiesError
Converts to this type from the input type.
sourceimpl From<OomError> for ComputePipelineCreationError
impl From<OomError> for ComputePipelineCreationError
sourcefn from(err: OomError) -> ComputePipelineCreationError
fn from(err: OomError) -> ComputePipelineCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for DeviceMemoryAllocError
impl From<OomError> for DeviceMemoryAllocError
sourcefn from(err: OomError) -> DeviceMemoryAllocError
fn from(err: OomError) -> DeviceMemoryAllocError
Converts to this type from the input type.
sourceimpl From<OomError> for FramebufferCreationError
impl From<OomError> for FramebufferCreationError
sourcefn from(err: OomError) -> FramebufferCreationError
fn from(err: OomError) -> FramebufferCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for GraphicsPipelineCreationError
impl From<OomError> for GraphicsPipelineCreationError
sourcefn from(err: OomError) -> GraphicsPipelineCreationError
fn from(err: OomError) -> GraphicsPipelineCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for ImageCreationError
impl From<OomError> for ImageCreationError
sourcefn from(err: OomError) -> ImageCreationError
fn from(err: OomError) -> ImageCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for InstanceCreationError
impl From<OomError> for InstanceCreationError
sourcefn from(err: OomError) -> InstanceCreationError
fn from(err: OomError) -> InstanceCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for LayersListError
impl From<OomError> for LayersListError
sourcefn from(err: OomError) -> LayersListError
fn from(err: OomError) -> LayersListError
Converts to this type from the input type.
sourceimpl From<OomError> for PersistentDescriptorSetBuildError
impl From<OomError> for PersistentDescriptorSetBuildError
sourcefn from(err: OomError) -> PersistentDescriptorSetBuildError
fn from(err: OomError) -> PersistentDescriptorSetBuildError
Converts to this type from the input type.
sourceimpl From<OomError> for PipelineLayoutCreationError
impl From<OomError> for PipelineLayoutCreationError
sourcefn from(err: OomError) -> PipelineLayoutCreationError
fn from(err: OomError) -> PipelineLayoutCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for QueryPoolCreationError
impl From<OomError> for QueryPoolCreationError
sourcefn from(err: OomError) -> QueryPoolCreationError
fn from(err: OomError) -> QueryPoolCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for RenderPassCreationError
impl From<OomError> for RenderPassCreationError
sourcefn from(err: OomError) -> RenderPassCreationError
fn from(err: OomError) -> RenderPassCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for SamplerCreationError
impl From<OomError> for SamplerCreationError
sourcefn from(err: OomError) -> SamplerCreationError
fn from(err: OomError) -> SamplerCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for SurfaceCreationError
impl From<OomError> for SurfaceCreationError
sourcefn from(err: OomError) -> SurfaceCreationError
fn from(err: OomError) -> SurfaceCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for SwapchainCreationError
impl From<OomError> for SwapchainCreationError
sourcefn from(err: OomError) -> SwapchainCreationError
fn from(err: OomError) -> SwapchainCreationError
Converts to this type from the input type.
impl Copy for OomError
impl Eq for OomError
impl StructuralEq for OomError
impl StructuralPartialEq for OomError
Auto Trait Implementations
impl RefUnwindSafe for OomError
impl Send for OomError
impl Sync for OomError
impl Unpin for OomError
impl UnwindSafe for OomError
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.