vyre 0.4.0

GPU compute intermediate representation with a standard operation library
Documentation
//! WGSL lowering source for `workgroup.stack`.
//!
//! This module contains the complete Rust-side lowering handle for the
//! bounded LIFO stack backed by workgroup SRAM and atomics. The shader body remains in the adjacent `.wgsl` asset
//! so backend loaders and tests share the exact same source bytes.
//! Keeping entry-point metadata here removes the old generated
//! `lowering.rs` plus `lowering/wgsl.rs` split.

/// Registered WGSL compute entry point for this intrinsic.
pub const ENTRY_POINT: &str = "workgroup_stack_kernel";

/// Human-readable backend family used by diagnostics and fixture names.
pub const BACKEND_FAMILY: &str = "workgroup";

/// Workgroup-local compute shader source for this intrinsic.
pub const WGSL: &str = include_str!("stack.wgsl");

/// Return the shader source passed to the WGSL backend loader.
#[must_use]
pub const fn shader_source() -> &'static str {
    WGSL
}

/// Return the backend family used by diagnostics and fixture names.
#[must_use]
pub const fn backend_family() -> &'static str {
    BACKEND_FAMILY
}

/// Verify that the bundled shader still exposes the registered entry point.
#[must_use]
pub fn exposes_registered_entry_point() -> bool {
    WGSL.contains(ENTRY_POINT)
}