Expand description
Metal Shading Language emitter for vyre KernelDescriptor.
This crate is the first native-Metal artifact seam. It deliberately reuses the canonical LEGO path:
Program -> vyre-lower::pre_emit -> KernelDescriptor
KernelDescriptor -> vyre-emit-naga -> naga::Module
naga::Module -> naga::back::msl -> MSL native_module artifactIt does not own runtime dispatch, device probing, buffer residency, or semantic lowering. Those stay in the driver and lowerer layers.
Structs§
- Metal
Artifact - Structured
native_moduleartifact emitted by this crate. - Metal
Binding Metadata - ABI binding metadata stored in a Metal artifact.
- Metal
Emit Options - Metal emission options.
- Metal
Threadgroup Memory Metadata - Threadgroup-memory metadata stored in a Metal artifact.
Enums§
- Emit
Error - Metal emission failure.
Constants§
- DEFAULT_
MSL_ VERSION - Default MSL target version used for source emission.
- METAL_
ARTIFACT_ SCHEMA native_moduleartifact schema version.
Functions§
- emit
- Emit MSL source from a descriptor using default Metal options.
- emit_
artifact - Emit a structured
native_moduleartifact. - emit_
artifact_ bytes - Emit deterministic JSON bytes for
xtask compile --to native_module. - emit_
artifact_ json - Emit a deterministic JSON
native_moduleartifact. - emit_
artifact_ with_ options - Emit a structured
native_moduleartifact with explicit options. - emit_
from_ naga_ module - Emit MSL from an already-constructed Naga module.
- emit_
with_ options - Emit MSL source from a descriptor using explicit options.