Skip to main content

Crate vyre_emit_naga

Crate vyre_emit_naga 

Source
Expand description

Naga IR emitter for vyre KernelDescriptor.

Consumes a substrate-neutral vyre_lower::KernelDescriptor and produces a naga::Module. The emitter owns only Naga construction; descriptor shaping and substrate-neutral analyses stay in vyre-lower.

Re-exports§

pub use vyre_lower;

Modules§

patterns
Naga-specific emit-time patterns.
program
Compatibility helpers for legacy Program-shaped Naga callers.

Structs§

BindResultEntry

Enums§

EmitError

Functions§

emit
Emit a naga::Module from a KernelDescriptor.
emit_many
Emit many independent descriptors exactly as provided.
emit_many_optimized
Emit many independent descriptors after running the canonical lower rewrite pipeline on each descriptor.
emit_optimized
Emit a naga::Module from a KernelDescriptor after running the full vyre_lower::rewrites::run_all optimization pipeline.
emit_optimized_with_stats
Like emit_optimized but also returns vyre_lower::rewrites::OptimizationStats so the caller can see what the rewrite stack did (op count delta, bindings dropped, fixed-point iterations needed). No duplicate work - emit_optimized is now a thin wrapper around this.