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
Source§impl<S> From<InitError<S>> for PipelineStateError<S>
impl<S> From<InitError<S>> for PipelineStateError<S>
impl<S> StructuralPartialEq for InitError<S>
Auto Trait Implementations§
impl<S> Freeze for InitError<S>where
S: Freeze,
impl<S> RefUnwindSafe for InitError<S>where
S: RefUnwindSafe,
impl<S> Send for InitError<S>where
S: Send,
impl<S> Sync for InitError<S>where
S: Sync,
impl<S> Unpin for InitError<S>where
S: Unpin,
impl<S> UnwindSafe for InitError<S>where
S: UnwindSafe,
Blanket Implementations§
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