pub struct CheckedEffect {
pub module: String,
pub functions: usize,
pub calls: u64,
pub cost_units: u64,
}Expand description
What registration learns about a runtime effect before any device sees it.
Fields§
§module: StringThe WGSL module the device would compile: the body, its loops bounded, in the wrapper.
functions: usizeFunctions the body declares.
calls: u64The most function bodies one invocation of any of them runs once calls are inlined.
cost_units: u64The invocation’s cost in units of the registration cap.
Trait Implementations§
Source§impl Clone for CheckedEffect
impl Clone for CheckedEffect
Source§impl Debug for CheckedEffect
impl Debug for CheckedEffect
impl Eq for CheckedEffect
Source§impl PartialEq for CheckedEffect
impl PartialEq for CheckedEffect
impl StructuralPartialEq for CheckedEffect
Auto Trait Implementations§
impl Forget for CheckedEffect
impl Freeze for CheckedEffect
impl Move for CheckedEffect
impl RefUnwindSafe for CheckedEffect
impl Send for CheckedEffect
impl Sync for CheckedEffect
impl Unpin for CheckedEffect
impl UnsafeUnpin for CheckedEffect
impl UnwindSafe for CheckedEffect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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