rust-gpu/tests/ui/spirv-attr/invariant-invalid.rs
2021-03-26 13:15:29 +01:00

8 lines
165 B
Rust

// Tests that the invariant attribute can't be applied on inputs
// build-fail
use spirv_std as _;
#[spirv(vertex)]
pub fn main(#[spirv(invariant)] input: f32) {}