pub struct IntrinsicRegistry { /* private fields */ }Expand description
Registry for mapping Rust function names to GPU intrinsics.
Implementations§
Source§impl IntrinsicRegistry
impl IntrinsicRegistry
Sourcepub fn lookup(&self, name: &str) -> Option<&GpuIntrinsic>
pub fn lookup(&self, name: &str) -> Option<&GpuIntrinsic>
Look up an intrinsic by Rust function name.
Sourcepub fn register(&mut self, rust_name: &str, intrinsic: GpuIntrinsic)
pub fn register(&mut self, rust_name: &str, intrinsic: GpuIntrinsic)
Register a custom intrinsic mapping.
Sourcepub fn is_intrinsic(&self, name: &str) -> bool
pub fn is_intrinsic(&self, name: &str) -> bool
Check if a name is a known intrinsic.