From 77d71295471e1027e77e24a7ab01405fc2e41f0d Mon Sep 17 00:00:00 2001 From: Jasper Bekkers Date: Thu, 22 Oct 2020 11:51:49 +0200 Subject: [PATCH] Add back unused attributes (#85) --- examples/example-shader/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/example-shader/src/lib.rs b/examples/example-shader/src/lib.rs index 8a079926bb..10752583e9 100644 --- a/examples/example-shader/src/lib.rs +++ b/examples/example-shader/src/lib.rs @@ -141,6 +141,7 @@ fn sky(dir: Vec3, sun_position: Vec3) -> Vec3 { color.pow(1.0 / (1.2 + (1.2 * sunfade))) } +#[allow(unused_attributes)] #[spirv(entry = "fragment")] pub fn main_fs(input: Input, mut output: Output) { let dir: Vec3 = input.load().truncate(); @@ -168,6 +169,7 @@ pub fn main_fs(input: Input, mut output: Output) { output.store(color.extend(0.0)) } +#[allow(unused_attributes)] #[spirv(entry = "vertex")] pub fn main_vs( in_pos: Input,