Enum vulkano::shader::ShaderCreationError
source · [−]pub enum ShaderCreationError {
OomError(OomError),
SpirvCapabilityNotSupported {
capability: Capability,
reason: ShaderSupportError,
},
SpirvError(SpirvError),
SpirvExtensionNotSupported {
extension: String,
reason: ShaderSupportError,
},
SpirvVersionNotSupported {
version: Version,
reason: ShaderSupportError,
},
}
Expand description
Error that can happen when creating a new shader module.
Variants
OomError(OomError)
SpirvCapabilityNotSupported
SpirvError(SpirvError)
SpirvExtensionNotSupported
SpirvVersionNotSupported
Trait Implementations
sourceimpl Clone for ShaderCreationError
impl Clone for ShaderCreationError
sourcefn clone(&self) -> ShaderCreationError
fn clone(&self) -> ShaderCreationError
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 ShaderCreationError
impl Debug for ShaderCreationError
sourceimpl Display for ShaderCreationError
impl Display for ShaderCreationError
sourceimpl Error for ShaderCreationError
impl Error for ShaderCreationError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<SpirvError> for ShaderCreationError
impl From<SpirvError> for ShaderCreationError
sourcefn from(err: SpirvError) -> Self
fn from(err: SpirvError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for ShaderCreationError
impl From<VulkanError> for ShaderCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ShaderCreationError
impl Send for ShaderCreationError
impl Sync for ShaderCreationError
impl Unpin for ShaderCreationError
impl UnwindSafe for ShaderCreationError
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