aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/draw_passes/level.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/draw_passes/level.rs')
-rw-r--r--stockton-render/src/draw/draw_passes/level.rs10
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!()