pub struct VulkanException { /* private fields */ }Expand description
A failure reported by Vulkan or by the code driving it.
Implementations§
Source§impl VulkanException
impl VulkanException
Sourcepub fn from_code(func_name: &str, res: i32) -> Self
pub fn from_code(func_name: &str, res: i32) -> Self
The failure of the function func_name with the numeric result
res.
Sourcepub fn from_result(func_name: &str, res: Result) -> Self
pub fn from_result(func_name: &str, res: Result) -> Self
The failure of the function func_name with the result res.
Sourcepub fn result(&self) -> Option<Result>
pub fn result(&self) -> Option<Result>
The result of Vulkan, when the failure was reported by Vulkan.
Sourcepub fn throw_on_error(func_name: &str, res: i32) -> Result<(), VulkanException>
pub fn throw_on_error(func_name: &str, res: i32) -> Result<(), VulkanException>
The failure of the function func_name, unless its numeric result
res is VK_SUCCESS.
Trait Implementations§
Source§impl Clone for VulkanException
impl Clone for VulkanException
Source§impl Debug for VulkanException
impl Debug for VulkanException
Source§impl Display for VulkanException
impl Display for VulkanException
impl Eq for VulkanException
Source§impl Error for VulkanException
impl Error for VulkanException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for VulkanException
impl PartialEq for VulkanException
impl StructuralPartialEq for VulkanException
Auto Trait Implementations§
impl Freeze for VulkanException
impl RefUnwindSafe for VulkanException
impl Send for VulkanException
impl Sync for VulkanException
impl Unpin for VulkanException
impl UnsafeUnpin for VulkanException
impl UnwindSafe for VulkanException
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more