pub enum CheckDynamicStateValidityError {
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
InvalidPrimitiveTopology {
topology: PrimitiveTopology,
reason: &'static str,
},
NotEnoughColorWriteEnable {
color_write_enable_count: u32,
attachment_count: u32,
},
NotSet {
dynamic_state: DynamicState,
},
ViewportScissorCountMismatch {
viewport_count: u32,
scissor_count: u32,
},
}
Expand description
Error that can happen when validating dynamic states.
Variants
FeatureNotEnabled
A device feature that was required for a particular dynamic state value was not enabled.
InvalidPrimitiveTopology
The provided dynamic primitive topology is not compatible with the pipeline.
NotEnoughColorWriteEnable
The number of ColorWriteEnable values was less than the number of attachments in the color blend state of the pipeline.
NotSet
Fields
dynamic_state: DynamicState
The pipeline requires a particular state to be set dynamically, but the value was not or only partially set.
ViewportScissorCountMismatch
The viewport count and scissor count do not match.
Trait Implementations
sourceimpl Clone for CheckDynamicStateValidityError
impl Clone for CheckDynamicStateValidityError
sourcefn clone(&self) -> CheckDynamicStateValidityError
fn clone(&self) -> CheckDynamicStateValidityError
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 more
sourceimpl Error for CheckDynamicStateValidityError
impl Error for CheckDynamicStateValidityError
1.30.0 · 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CheckDynamicStateValidityError> for DrawError
impl From<CheckDynamicStateValidityError> for DrawError
sourcefn from(err: CheckDynamicStateValidityError) -> DrawError
fn from(err: CheckDynamicStateValidityError) -> DrawError
Performs the conversion.
sourceimpl From<CheckDynamicStateValidityError> for DrawIndexedError
impl From<CheckDynamicStateValidityError> for DrawIndexedError
sourcefn from(err: CheckDynamicStateValidityError) -> DrawIndexedError
fn from(err: CheckDynamicStateValidityError) -> DrawIndexedError
Performs the conversion.
sourceimpl From<CheckDynamicStateValidityError> for DrawIndirectError
impl From<CheckDynamicStateValidityError> for DrawIndirectError
sourcefn from(err: CheckDynamicStateValidityError) -> DrawIndirectError
fn from(err: CheckDynamicStateValidityError) -> DrawIndirectError
Performs the conversion.
sourceimpl From<CheckDynamicStateValidityError> for DrawIndexedIndirectError
impl From<CheckDynamicStateValidityError> for DrawIndexedIndirectError
sourcefn from(err: CheckDynamicStateValidityError) -> DrawIndexedIndirectError
fn from(err: CheckDynamicStateValidityError) -> DrawIndexedIndirectError
Performs the conversion.
impl Copy for CheckDynamicStateValidityError
Auto Trait Implementations
impl RefUnwindSafe for CheckDynamicStateValidityError
impl Send for CheckDynamicStateValidityError
impl Sync for CheckDynamicStateValidityError
impl Unpin for CheckDynamicStateValidityError
impl UnwindSafe for CheckDynamicStateValidityError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more