From fb996488aa651cb2e7f46abc083c4318b47e77cd Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: wip refactor(render): more work on draw passes --- stockton-render/src/draw/draw_passes/level.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'stockton-render/src/draw/draw_passes/level.rs') diff --git a/stockton-render/src/draw/draw_passes/level.rs b/stockton-render/src/draw/draw_passes/level.rs index afcb703..b968a1a 100644 --- a/stockton-render/src/draw/draw_passes/level.rs +++ b/stockton-render/src/draw/draw_passes/level.rs @@ -1,6 +1,6 @@ //! Minimal code for drawing any level, based on traits from stockton-levels -use super::{DrawPass, DrawPassInput, IntoDrawPass}; +use super::{DrawPass, IntoDrawPass}; use crate::{ draw::{queue_negotiator::QueueNegotiator, target::SwapchainProperties, texture::TextureRepo}, error::EnvironmentError, @@ -30,16 +30,10 @@ pub struct LevelDrawPass { _d: PhantomData, } -/// Any map can be used as draw pass input. -/// TODO: Restrict this based on the type of the renderer. -impl DrawPassInput for T {} - impl DrawPass for LevelDrawPass { - type Input = M; - fn queue_draw( &self, - _file: &Self::Input, + _input: &Session, _cmd_buffer: &mut crate::types::CommandBufferT, ) -> anyhow::Result<()> { todo!() -- cgit v1.2.3