vyre 0.4.0

GPU compute intermediate representation with a standard operation library
Documentation
1
2
3
4
5
6
7
8
9
//! Backend predicate used by compiler primitives to declare WGSL availability.

/// Return `true` when `backend` is the WGSL target.
///
/// Compiler primitives lower to hand-written WGSL kernels; this predicate
/// guards their inclusion in the WGSL lowering table.
pub(crate) fn wgsl_backend(backend: &crate::ops::Backend) -> bool {
    matches!(backend, crate::ops::Backend::Wgsl)
}