naga::back::msl::writer

Trait NameKeyExt

Source
trait NameKeyExt {
    // Provided methods
    fn local(
        origin: FunctionOrigin,
        local_handle: Handle<LocalVariable>,
    ) -> NameKey { ... }
    fn oob_local_for_type(origin: FunctionOrigin, ty: Handle<Type>) -> NameKey { ... }
}

Provided Methods§

Source

fn local(origin: FunctionOrigin, local_handle: Handle<LocalVariable>) -> NameKey

Source

fn oob_local_for_type(origin: FunctionOrigin, ty: Handle<Type>) -> NameKey

Return the name key for a local variable used by ReadZeroSkipWrite bounds-check policy when it needs to produce a pointer-typed result for an OOB access. These are unique per accessed type, so the second argument is a type handle. See docs for crate::back::msl.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§