Files
VulkanDriver/src/compiler/spirv/root.zig
T
kbz_8 9b1b223186
Test / build_and_test (push) Successful in 5m16s
Build / build (push) Successful in 6m50s
adding backend agnostic IR
2026-07-20 22:07:41 +02:00

17 lines
706 B
Zig

//! ## SPIR-V frontend
//!
//! This namespace contains the SPIR-V parser and translator used to import shader
//! modules into the compiler IR.
//!
//! `Parser` validates the SPIR-V header and iterates over binary instructions.
//! `spec` exposes a minimalistic SPIR-V header translation.
//!
//! The main entry point is `translator.translate`, which finds the requested entry
//! point, maps its execution model to an IR shader stage, lowers supported types,
//! constants, interfaces, instructions, and structured control flow, then validates
//! the generated IR module.
pub const Parser = @import("Parser.zig");
pub const translator = @import("translator.zig");
pub const spec = @import("spirv.zig");