pub struct IntrinsicRegistry { /* private fields */ }Expand description
Registry mapping Rust DSL function names to WGSL intrinsics.
Implementations§
Source§impl IntrinsicRegistry
impl IntrinsicRegistry
Sourcepub fn lookup(&self, name: &str) -> Option<WgslIntrinsic>
pub fn lookup(&self, name: &str) -> Option<WgslIntrinsic>
Look up an intrinsic by Rust DSL function name.
Sourcepub fn is_intrinsic(&self, name: &str) -> bool
pub fn is_intrinsic(&self, name: &str) -> bool
Check if a function name is a known intrinsic.
Sourcepub fn subgroup_intrinsics(&self) -> Vec<(&'static str, WgslIntrinsic)>
pub fn subgroup_intrinsics(&self) -> Vec<(&'static str, WgslIntrinsic)>
Get all intrinsics that require the subgroup extension.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntrinsicRegistry
impl RefUnwindSafe for IntrinsicRegistry
impl Send for IntrinsicRegistry
impl Sync for IntrinsicRegistry
impl Unpin for IntrinsicRegistry
impl UnwindSafe for IntrinsicRegistry
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