pub struct Interface { /* private fields */ }Implementations§
Source§impl Interface
impl Interface
pub fn new( module: &Module, info: &ModuleInfo, limits: Limits, features: Features, ) -> Interface
pub fn check_stage( &self, layouts: &mut BindingLayoutSource<'_>, shader_binding_sizes: &mut HashMap<ResourceBinding, NonZero<u64>, BuildHasherDefault<FxHasher>>, entry_point_name: &str, stage_bit: ShaderStages, inputs: HashMap<u32, InterfaceVar, BuildHasherDefault<FxHasher>>, compare_function: Option<CompareFunction>, ) -> Result<HashMap<u32, InterfaceVar, BuildHasherDefault<FxHasher>>, StageError>
pub fn fragment_uses_dual_source_blending( &self, entry_point_name: &str, ) -> Result<bool, StageError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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