spirv/lib.rs
1//! The SPIR-V header.
2//!
3//! This crate contains Rust definitions of all SPIR-V structs, enums,
4//! and constants.
5//!
6//! The version of this crate is the version of SPIR-V it contains.
7
8#![no_std]
9#![allow(non_camel_case_types)]
10#![deny(clippy::std_instead_of_core, clippy::alloc_instead_of_core)]
11#![cfg_attr(rustfmt, rustfmt_skip)]
12
13use bitflags::bitflags;
14
15include!("autogen_spirv.rs");
16
17impl From<Op> for Word {
18 // Exists because of repr()
19 fn from(value: Op) -> Self {
20 value as Word
21 }
22}