pub struct Result(/* private fields */);
Implementations§
Source§impl Result
impl Result
pub fn result(self) -> VkResult<()>
pub fn result_with_success<T>(self, v: T) -> VkResult<T>
pub unsafe fn assume_init_on_success<T>(self, v: MaybeUninit<T>) -> VkResult<T>
pub unsafe fn set_vec_len_on_success<T>( self, v: Vec<T>, len: usize, ) -> VkResult<Vec<T>>
Source§impl Result
impl Result
Sourcepub const EVENT_RESET: Self = _
pub const EVENT_RESET: Self = _
An event is unsignaled
Sourcepub const INCOMPLETE: Self = _
pub const INCOMPLETE: Self = _
A return array was too small for the result
Sourcepub const ERROR_OUT_OF_HOST_MEMORY: Self = _
pub const ERROR_OUT_OF_HOST_MEMORY: Self = _
A host memory allocation has failed
Sourcepub const ERROR_OUT_OF_DEVICE_MEMORY: Self = _
pub const ERROR_OUT_OF_DEVICE_MEMORY: Self = _
A device memory allocation has failed
Sourcepub const ERROR_INITIALIZATION_FAILED: Self = _
pub const ERROR_INITIALIZATION_FAILED: Self = _
Initialization of an object has failed
Sourcepub const ERROR_DEVICE_LOST: Self = _
pub const ERROR_DEVICE_LOST: Self = _
The logical device has been lost. See https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#devsandqueues-lost-device
Sourcepub const ERROR_MEMORY_MAP_FAILED: Self = _
pub const ERROR_MEMORY_MAP_FAILED: Self = _
Mapping of a memory object has failed
Sourcepub const ERROR_LAYER_NOT_PRESENT: Self = _
pub const ERROR_LAYER_NOT_PRESENT: Self = _
Layer specified does not exist
Sourcepub const ERROR_EXTENSION_NOT_PRESENT: Self = _
pub const ERROR_EXTENSION_NOT_PRESENT: Self = _
Extension specified does not exist
Sourcepub const ERROR_FEATURE_NOT_PRESENT: Self = _
pub const ERROR_FEATURE_NOT_PRESENT: Self = _
Requested feature is not available on this device
Sourcepub const ERROR_INCOMPATIBLE_DRIVER: Self = _
pub const ERROR_INCOMPATIBLE_DRIVER: Self = _
Unable to find a Vulkan driver
Sourcepub const ERROR_TOO_MANY_OBJECTS: Self = _
pub const ERROR_TOO_MANY_OBJECTS: Self = _
Too many objects of the type have already been created
Sourcepub const ERROR_FORMAT_NOT_SUPPORTED: Self = _
pub const ERROR_FORMAT_NOT_SUPPORTED: Self = _
Requested format is not supported on this device
Sourcepub const ERROR_FRAGMENTED_POOL: Self = _
pub const ERROR_FRAGMENTED_POOL: Self = _
A requested pool allocation has failed due to fragmentation of the pool’s memory
Sourcepub const ERROR_UNKNOWN: Self = _
pub const ERROR_UNKNOWN: Self = _
An unknown error has occurred, due to an implementation or application bug
Source§impl Result
impl Result
Generated from ‘VK_KHR_surface’
pub const ERROR_SURFACE_LOST_KHR: Self = _
pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_KHR_swapchain’
pub const SUBOPTIMAL_KHR: Self = _
pub const ERROR_OUT_OF_DATE_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_KHR_display_swapchain’
pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_debug_report’
pub const ERROR_VALIDATION_FAILED_EXT: Self = _
Source§impl Result
impl Result
Generated from ‘VK_NV_glsl_shader’
pub const ERROR_INVALID_SHADER_NV: Self = _
Source§impl Result
impl Result
Generated from ‘VK_KHR_video_queue’
pub const ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: Self = _
pub const ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: Self = _
pub const ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR: Self = _
pub const ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR: Self = _
pub const ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR: Self = _
pub const ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_KHR_maintenance1’
pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self = Self::ERROR_OUT_OF_POOL_MEMORY
Source§impl Result
impl Result
Generated from ‘VK_KHR_external_memory’
pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Self = Self::ERROR_INVALID_EXTERNAL_HANDLE
Source§impl Result
impl Result
Generated from ‘VK_EXT_image_drm_format_modifier’
pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_descriptor_indexing’
pub const ERROR_FRAGMENTATION_EXT: Self = Self::ERROR_FRAGMENTATION
Source§impl Result
impl Result
Generated from ‘VK_EXT_global_priority’
pub const ERROR_NOT_PERMITTED_EXT: Self = Self::ERROR_NOT_PERMITTED_KHR
Source§impl Result
impl Result
Generated from ‘VK_KHR_global_priority’
pub const ERROR_NOT_PERMITTED_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_buffer_device_address’
pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS
Source§impl Result
impl Result
Generated from ‘VK_EXT_full_screen_exclusive’
pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: Self = _
Source§impl Result
impl Result
Generated from ‘VK_KHR_buffer_device_address’
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS
Source§impl Result
impl Result
Generated from ‘VK_KHR_deferred_host_operations’
pub const THREAD_IDLE_KHR: Self = _
pub const THREAD_DONE_KHR: Self = _
pub const OPERATION_DEFERRED_KHR: Self = _
pub const OPERATION_NOT_DEFERRED_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_pipeline_creation_cache_control’
pub const PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED
pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED
Source§impl Result
impl Result
Generated from ‘VK_KHR_video_encode_queue’
pub const ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_image_compression_control’
pub const ERROR_COMPRESSION_EXHAUSTED_EXT: Self = _
Source§impl Result
impl Result
Generated from ‘VK_EXT_shader_object’
pub const INCOMPATIBLE_SHADER_BINARY_EXT: Self = _
Source§impl Result
impl Result
Generated from ‘VK_VERSION_1_1’
pub const ERROR_OUT_OF_POOL_MEMORY: Self = _
pub const ERROR_INVALID_EXTERNAL_HANDLE: Self = _
Source§impl Result
impl Result
Generated from ‘VK_VERSION_1_2’
pub const ERROR_FRAGMENTATION: Self = _
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self = _
Source§impl Result
impl Result
Generated from ‘VK_VERSION_1_3’