diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
commit | fb996488aa651cb2e7f46abc083c4318b47e77cd (patch) | |
tree | d1513d479b6069abca290e271f439cd1ef553383 /stockton-render/src/draw/draw_passes/level.rs | |
parent | a82e16c92a026b2fbe3a40a21d7e690242e32ba6 (diff) |
wip refactor(render): more work on draw passes
Diffstat (limited to 'stockton-render/src/draw/draw_passes/level.rs')
-rw-r--r-- | stockton-render/src/draw/draw_passes/level.rs | 10 |
1 files changed, 2 insertions, 8 deletions
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<M: MinRenderFeatures> { _d: PhantomData<M>, } -/// Any map can be used as draw pass input. -/// TODO: Restrict this based on the type of the renderer. -impl<T: MinRenderFeatures> DrawPassInput for T {} - impl<M: MinRenderFeatures> DrawPass for LevelDrawPass<M> { - type Input = M; - fn queue_draw( &self, - _file: &Self::Input, + _input: &Session, _cmd_buffer: &mut crate::types::CommandBufferT, ) -> anyhow::Result<()> { todo!() |