pub enum SemanticsErrorKind {
Show 14 variants
InvalidUniformBufferCount(usize),
InvalidPushBufferCount(usize),
InvalidPushBufferSize(u32),
InvalidLocation(u32),
InvalidDescriptorSet(u32),
InvalidInputCount(usize),
InvalidOutputCount(usize),
MissingBinding,
InvalidBinding(u32),
InvalidResourceType,
InvalidRange(u32),
InvalidEntryPointCount(usize),
UnknownSemantics(String),
InvalidTypeForSemantic(String),
}
Expand description
The error kind encountered when reflecting shader semantics.
Variants§
InvalidUniformBufferCount(usize)
The number of uniform buffers was invalid. Only one UBO is permitted.
InvalidPushBufferCount(usize)
The number of push constant blocks was invalid. Only one push constant block is permitted.
InvalidPushBufferSize(u32)
The size of the push constant block was invalid.
InvalidLocation(u32)
The location of a varying was invalid.
InvalidDescriptorSet(u32)
The requested descriptor set was invalid. Only descriptor set 0 is available.
InvalidInputCount(usize)
The number of inputs to the shader was invalid.
InvalidOutputCount(usize)
The number of outputs declared was invalid.
MissingBinding
Expected a binding but there was none.
InvalidBinding(u32)
The declared binding point was invalid.
InvalidResourceType
The declared resource type was invalid.
InvalidRange(u32)
The range of a struct member was invalid.
InvalidEntryPointCount(usize)
The number of entry points in the shader was invalid.
UnknownSemantics(String)
The requested uniform or texture name was not provided semantics.
InvalidTypeForSemantic(String)
The type of the requested uniform was not compatible with the provided semantics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SemanticsErrorKind
impl RefUnwindSafe for SemanticsErrorKind
impl Send for SemanticsErrorKind
impl Sync for SemanticsErrorKind
impl Unpin for SemanticsErrorKind
impl UnwindSafe for SemanticsErrorKind
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more