aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/draw_passes/cons.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commit6ef351de4ba506e7f0f285569aa0e22255bb68c6 (patch)
tree7aaf25bb93e3d97ba03c408fdef9f7b1933ea7bc /stockton-render/src/draw/draw_passes/cons.rs
parent2e33320e62a3dc26555f17e1a79e129a53672a1b (diff)
refactor(render): slight leveldrawpass refactors
Diffstat (limited to 'stockton-render/src/draw/draw_passes/cons.rs')
-rw-r--r--stockton-render/src/draw/draw_passes/cons.rs18
1 files changed, 0 insertions, 18 deletions
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<A: DrawPass, B: DrawPass> DrawPass for ConsDrawPass<A, B> {
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<RwLock<DeviceT>>) -> Result<()> {
- Ok(())
- }
-}