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§
source§impl Clone for ShaderCreationError
impl Clone for ShaderCreationError
source§fn clone(&self) -> ShaderCreationError
fn clone(&self) -> ShaderCreationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ShaderCreationError
impl Debug for ShaderCreationError
source§impl Display for ShaderCreationError
impl Display for ShaderCreationError
source§impl Error for ShaderCreationError
impl Error for ShaderCreationError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SpirvError> for ShaderCreationError
impl From<SpirvError> for ShaderCreationError
source§fn from(err: SpirvError) -> Self
fn from(err: SpirvError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for ShaderCreationError
impl From<VulkanError> for ShaderCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.