ash::vk

Struct Result

Source
pub struct Result(/* private fields */);
Expand description

Implementations§

Source§

impl Result

Source

pub fn result(self) -> VkResult<()>

Source

pub fn result_with_success<T>(self, v: T) -> VkResult<T>

Source

pub unsafe fn assume_init_on_success<T>(self, v: MaybeUninit<T>) -> VkResult<T>

Source§

impl Result

Source

pub const fn from_raw(x: i32) -> Self

Source

pub const fn as_raw(self) -> i32

Source§

impl Result

Source

pub const SUCCESS: Self = _

Command completed successfully

Source

pub const NOT_READY: Self = _

A fence or query has not yet completed

Source

pub const TIMEOUT: Self = _

A wait operation has not completed in the specified time

Source

pub const EVENT_SET: Self = _

An event is signaled

Source

pub const EVENT_RESET: Self = _

An event is unsignaled

Source

pub const INCOMPLETE: Self = _

A return array was too small for the result

Source

pub const ERROR_OUT_OF_HOST_MEMORY: Self = _

A host memory allocation has failed

Source

pub const ERROR_OUT_OF_DEVICE_MEMORY: Self = _

A device memory allocation has failed

Source

pub const ERROR_INITIALIZATION_FAILED: Self = _

Initialization of an object has failed

Source

pub const ERROR_DEVICE_LOST: Self = _

Source

pub const ERROR_MEMORY_MAP_FAILED: Self = _

Mapping of a memory object has failed

Source

pub const ERROR_LAYER_NOT_PRESENT: Self = _

Layer specified does not exist

Source

pub const ERROR_EXTENSION_NOT_PRESENT: Self = _

Extension specified does not exist

Source

pub const ERROR_FEATURE_NOT_PRESENT: Self = _

Requested feature is not available on this device

Source

pub const ERROR_INCOMPATIBLE_DRIVER: Self = _

Unable to find a Vulkan driver

Source

pub const ERROR_TOO_MANY_OBJECTS: Self = _

Too many objects of the type have already been created

Source

pub const ERROR_FORMAT_NOT_SUPPORTED: Self = _

Requested format is not supported on this device

Source

pub const ERROR_FRAGMENTED_POOL: Self = _

A requested pool allocation has failed due to fragmentation of the pool’s memory

Source

pub const ERROR_UNKNOWN: Self = _

An unknown error has occurred, due to an implementation or application bug

Source§

impl Result

Generated from ‘VK_KHR_surface’

Source§

impl Result

Generated from ‘VK_KHR_swapchain’

Source

pub const SUBOPTIMAL_KHR: Self = _

Source

pub const ERROR_OUT_OF_DATE_KHR: Self = _

Source§

impl Result

Generated from ‘VK_KHR_display_swapchain’

Source§

impl Result

Generated from ‘VK_EXT_debug_report’

Source§

impl Result

Generated from ‘VK_NV_glsl_shader’

Source

pub const ERROR_INVALID_SHADER_NV: Self = _

Source§

impl Result

Generated from ‘VK_KHR_video_queue’

Source§

impl Result

Generated from ‘VK_KHR_maintenance1’

Source

pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self = Self::ERROR_OUT_OF_POOL_MEMORY

Source§

impl Result

Generated from ‘VK_KHR_external_memory’

Source

pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Self = Self::ERROR_INVALID_EXTERNAL_HANDLE

Source§

impl Result

Generated from ‘VK_EXT_image_drm_format_modifier’

Source§

impl Result

Generated from ‘VK_EXT_descriptor_indexing’

Source

pub const ERROR_FRAGMENTATION_EXT: Self = Self::ERROR_FRAGMENTATION

Source§

impl Result

Generated from ‘VK_EXT_global_priority’

Source

pub const ERROR_NOT_PERMITTED_EXT: Self = Self::ERROR_NOT_PERMITTED_KHR

Source§

impl Result

Generated from ‘VK_KHR_global_priority’

Source

pub const ERROR_NOT_PERMITTED_KHR: Self = _

Source§

impl Result

Generated from ‘VK_EXT_buffer_device_address’

Source

pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

Source§

impl Result

Generated from ‘VK_EXT_full_screen_exclusive’

Source§

impl Result

Generated from ‘VK_KHR_buffer_device_address’

Source

pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

Source§

impl Result

Generated from ‘VK_KHR_deferred_host_operations’

Source

pub const THREAD_IDLE_KHR: Self = _

Source

pub const THREAD_DONE_KHR: Self = _

Source

pub const OPERATION_DEFERRED_KHR: Self = _

Source

pub const OPERATION_NOT_DEFERRED_KHR: Self = _

Source§

impl Result

Generated from ‘VK_EXT_pipeline_creation_cache_control’

Source

pub const PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED

Source

pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED

Source§

impl Result

Generated from ‘VK_KHR_video_encode_queue’

Source§

impl Result

Generated from ‘VK_EXT_image_compression_control’

Source§

impl Result

Generated from ‘VK_EXT_shader_object’

Source§

impl Result

Generated from ‘VK_VERSION_1_1’

Source§

impl Result

Generated from ‘VK_VERSION_1_2’

Source§

impl Result

Generated from ‘VK_VERSION_1_3’

Trait Implementations§

Source§

impl Clone for Result

Source§

fn clone(&self) -> Result

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Result

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Result

Source§

fn default() -> Result

Returns the “default value” for a type. Read more
Source§

impl Display for Result

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Result

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Hash for Result

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Result

Source§

fn cmp(&self, other: &Result) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Result

Source§

fn eq(&self, other: &Result) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Result

Source§

fn partial_cmp(&self, other: &Result) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Result

Source§

impl Eq for Result

Source§

impl StructuralPartialEq for Result

Auto Trait Implementations§

§

impl Freeze for Result

§

impl RefUnwindSafe for Result

§

impl Send for Result

§

impl Sync for Result

§

impl Unpin for Result

§

impl UnwindSafe for Result

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.