Enum gfx::shade::core::CreateShaderError
source · pub enum CreateShaderError {
ModelNotSupported,
StageNotSupported(Stage),
CompilationFailed(String),
}
Expand description
An error type for creating shaders.
Variants§
ModelNotSupported
The device does not support the requested shader model.
StageNotSupported(Stage)
The device does not support the shader stage.
CompilationFailed(String)
The shader failed to compile.
Trait Implementations§
source§impl Clone for CreateShaderError
impl Clone for CreateShaderError
source§fn clone(&self) -> CreateShaderError
fn clone(&self) -> CreateShaderError
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 CreateShaderError
impl Debug for CreateShaderError
source§impl Display for CreateShaderError
impl Display for CreateShaderError
source§impl Error for CreateShaderError
impl Error for CreateShaderError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
source§impl PartialEq<CreateShaderError> for CreateShaderError
impl PartialEq<CreateShaderError> for CreateShaderError
source§fn eq(&self, other: &CreateShaderError) -> bool
fn eq(&self, other: &CreateShaderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.