pub enum InitError<S> {
VertexImport(S, Option<Format>),
ConstantBuffer(S, Option<ElementError<S>>),
GlobalConstant(S, Option<CompatibilityError>),
ResourceView(S, Option<()>),
UnorderedView(S, Option<()>),
Sampler(S, Option<()>),
PixelExport(S, Option<Format>),
}
Expand description
Failure to initilize the link between the shader and the data.
Variants§
VertexImport(S, Option<Format>)
Vertex attribute mismatch.
ConstantBuffer(S, Option<ElementError<S>>)
Constant buffer mismatch.
GlobalConstant(S, Option<CompatibilityError>)
Global constant mismatch.
ResourceView(S, Option<()>)
Shader resource view mismatch.
UnorderedView(S, Option<()>)
Unordered access view mismatch.
Sampler(S, Option<()>)
Sampler mismatch.
PixelExport(S, Option<Format>)
Pixel target mismatch.
Trait Implementations§
source§impl<S: Debug + Display> Error for InitError<S>
impl<S: Debug + Display> Error for InitError<S>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting