Expand description
SPIR-V backend for vyre.
Reuses the shared naga::Module builder family and emits SPIR-V rather than WGSL. Intended for consumers targeting Vulkan-compatible compute pipelines (Vulkan 1.0+, Android NDK compute, desktop Vulkan).
use vyre_driver_spirv::SpirvBackend;
// let module: naga::Module = ...; // built via shared vyre naga emit
// let words: Vec<u32> = SpirvBackend::emit_spv(&module).unwrap();The crate registers a BackendRegistration named "spirv" via inventory
so vyre::registered_backends() enumerates it alongside other
photonic.
Re-exports§
pub use backend::SpirvBackend;
Modules§
- backend
- SPIR-V backend implementation. Contains
SpirvBackendand the naga::back::spv glue that turns avyre::Programinto SPIR-V bytes. SpirV element. SpirV element. SPIR-V emission via naga::back::spv.
Structs§
- Spirv
Backend Registration - Live Vulkan-backed SPIR-V backend.
Constants§
- SPIRV_
BACKEND_ ID - Stable backend identifier for conform certificates.
Functions§
- spirv_
factory - Factory for the inventory registration path.
- spirv_
supported_ ops - Op-support set for the SPIR-V backend.