From fdab50174644f1a0b86e83ffe4d04b0ed005d0f9 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 16 Jun 2016 09:36:27 +0200 Subject: [PATCH] Fix unused imports in vulkano-shaders --- vulkano-shaders/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vulkano-shaders/src/lib.rs b/vulkano-shaders/src/lib.rs index 37d76352..e7d25035 100644 --- a/vulkano-shaders/src/lib.rs +++ b/vulkano-shaders/src/lib.rs @@ -67,22 +67,38 @@ pub fn reflect(name: &str, mut spirv: R) -> Result let mut output = String::new(); output.push_str(r#" + #[allow(unused_imports)] use std::sync::Arc; + #[allow(unused_imports)] use std::vec::IntoIter as VecIntoIter; + #[allow(unused_imports)] use vulkano::device::Device; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorDesc; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorDescTy; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorBufferDesc; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorImageDesc; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorImageDescDimensions; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::DescriptorImageDescArray; + #[allow(unused_imports)] use vulkano::descriptor::descriptor::ShaderStages; + #[allow(unused_imports)] use vulkano::descriptor::descriptor_set::DescriptorSet; + #[allow(unused_imports)] use vulkano::descriptor::descriptor_set::UnsafeDescriptorSet; + #[allow(unused_imports)] use vulkano::descriptor::descriptor_set::UnsafeDescriptorSetLayout; + #[allow(unused_imports)] use vulkano::descriptor::pipeline_layout::PipelineLayout; + #[allow(unused_imports)] use vulkano::descriptor::pipeline_layout::PipelineLayoutDesc; + #[allow(unused_imports)] use vulkano::descriptor::pipeline_layout::UnsafePipelineLayout; "#);