From 66303c142dfc7dc8a39b12384d1c5d7317304094 Mon Sep 17 00:00:00 2001 From: tomaka Date: Tue, 15 Aug 2017 17:15:57 +0200 Subject: [PATCH] "Remove" the deprecated GraphicsPipelineParams (#739) * "Remove" the deprecatred GraphicsPipelineParams * Fix imports --- vulkano/src/pipeline/graphics_pipeline/mod.rs | 22 +++++-------------- vulkano/src/pipeline/mod.rs | 2 -- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/vulkano/src/pipeline/graphics_pipeline/mod.rs b/vulkano/src/pipeline/graphics_pipeline/mod.rs index 5fa5aba6..158a5e39 100644 --- a/vulkano/src/pipeline/graphics_pipeline/mod.rs +++ b/vulkano/src/pipeline/graphics_pipeline/mod.rs @@ -7,10 +7,6 @@ // notice may not be copied, modified, or distributed except // according to those terms. -// TODO: graphics pipeline params are deprecated, but are still the primary implementation in order -// to avoid duplicating code, so we hide the warnings for now -#![allow(deprecated)] - use smallvec::SmallVec; use std::error; use std::fmt; @@ -79,8 +75,7 @@ mod builder; //mod tests; /// Description of a `GraphicsPipeline`. -#[deprecated = "Use the GraphicsPipelineBuilder instead"] -pub struct GraphicsPipelineParams< +pub(crate) struct GraphicsPipelineParams< Vdef, Vs, Tcs, @@ -139,8 +134,7 @@ pub struct GraphicsPipelineParams< } /// Additional parameters if you use tessellation. -#[deprecated = "Use the GraphicsPipelineBuilder instead"] -pub struct GraphicsPipelineParamsTess { +pub(crate) struct GraphicsPipelineParamsTess { /// The entry point of the tessellation control shader. pub tessellation_control_shader: Tcs, /// The entry point of the tessellation evaluation shader. @@ -205,8 +199,7 @@ impl GraphicsPipeline /// this function assumes that you will only use a vertex shader and a fragment shader. See /// the other constructors for other possibilities. #[inline] - #[deprecated = "Use the GraphicsPipelineBuilder instead"] - pub fn new + pub(crate) fn new (device: Arc, params: GraphicsPipelineParams) -> Result>, Rp>, GraphicsPipelineCreationError> @@ -249,8 +242,7 @@ impl GraphicsPipeline /// this function assumes that you will use a vertex shader, a geometry shader and a fragment /// shader. See the other constructors for other possibilities. #[inline] - #[deprecated = "Use the GraphicsPipelineBuilder instead"] - pub fn with_geometry_shader + pub(crate) fn with_geometry_shader (device: Arc, params: GraphicsPipelineParams) -> Result, Gs::PipelineLayout>>, Rp>, GraphicsPipelineCreationError> @@ -307,8 +299,7 @@ impl GraphicsPipeline /// tessellation evaluation shader and a fragment shader. See the other constructors for other /// possibilities. #[inline] - #[deprecated = "Use the GraphicsPipelineBuilder instead"] - pub fn with_tessellation + pub(crate) fn with_tessellation (device: Arc, params: GraphicsPipelineParams) -> Result, Tcs::PipelineLayout>, Tes::PipelineLayout>>, Rp>, GraphicsPipelineCreationError> @@ -376,8 +367,7 @@ impl GraphicsPipeline /// constructors for other possibilities. // TODO: replace Box with a PipelineUnion struct without template params #[inline] - #[deprecated = "Use the GraphicsPipelineBuilder instead"] - pub fn with_tessellation_and_geometry