From 6ef351de4ba506e7f0f285569aa0e22255bb68c6 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: refactor(render): slight leveldrawpass refactors --- stockton-render/src/draw/draw_passes/cons.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'stockton-render/src/draw/draw_passes/cons.rs') diff --git a/stockton-render/src/draw/draw_passes/cons.rs b/stockton-render/src/draw/draw_passes/cons.rs index 8f912ec..542c26a 100644 --- a/stockton-render/src/draw/draw_passes/cons.rs +++ b/stockton-render/src/draw/draw_passes/cons.rs @@ -33,21 +33,3 @@ impl DrawPass for ConsDrawPass { self.b.deactivate(device) } } - -/// A draw pass that does nothing. Can be used at the end of sequences if there's an odd number of draw passes. -pub struct NilDrawPass; - -impl DrawPass for NilDrawPass { - fn queue_draw( - &mut self, - _input: &Session, - _img_view: &ImageViewT, - _cmd_buffer: &mut CommandBufferT, - ) -> Result<()> { - Ok(()) - } - - fn deactivate(self, _device: &mut Arc>) -> Result<()> { - Ok(()) - } -} -- cgit v1.2.3