Skip to main content

Crate vyre_emit_metal

Crate vyre_emit_metal 

Source
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 artifact

It does not own runtime dispatch, device probing, buffer residency, or semantic lowering. Those stay in the driver and lowerer layers.

Structs§

MetalArtifact
Structured native_module artifact emitted by this crate.
MetalBindingMetadata
ABI binding metadata stored in a Metal artifact.
MetalEmitOptions
Metal emission options.
MetalThreadgroupMemoryMetadata
Threadgroup-memory metadata stored in a Metal artifact.

Enums§

EmitError
Metal emission failure.

Constants§

DEFAULT_MSL_VERSION
Default MSL target version used for source emission.
METAL_ARTIFACT_SCHEMA
native_module artifact schema version.

Functions§

emit
Emit MSL source from a descriptor using default Metal options.
emit_artifact
Emit a structured native_module artifact.
emit_artifact_bytes
Emit deterministic JSON bytes for xtask compile --to native_module.
emit_artifact_json
Emit a deterministic JSON native_module artifact.
emit_artifact_with_options
Emit a structured native_module artifact 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.