Skip to main content

Crate vyre_driver_spirv

Crate vyre_driver_spirv 

Source
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 SpirvBackend and the naga::back::spv glue that turns a vyre::Program into SPIR-V bytes. SpirV element. SpirV element. SPIR-V emission via naga::back::spv.

Structs§

SpirvBackendRegistration
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.