remove super

This commit is contained in:
Carter Anderson 2020-02-07 23:18:53 -08:00
parent 3b0b40a79d
commit 8f1c9e9333

View file

@ -5,7 +5,8 @@ use crate::{
}, },
math::Vec4, math::Vec4,
render::render_graph_2::{ render::render_graph_2::{
resource::DynamicUniformBufferInfo, BindType, ResourceProvider, UniformPropertyType, resource::DynamicUniformBufferInfo, BindType, Renderer, ResourceProvider,
UniformPropertyType,
}, },
}; };
use legion::{prelude::*, storage::Component}; use legion::{prelude::*, storage::Component};
@ -260,9 +261,9 @@ impl<T> ResourceProvider for UniformResourceProvider<T>
where where
T: AsUniforms + Send + Sync + 'static, T: AsUniforms + Send + Sync + 'static,
{ {
fn initialize(&mut self, _renderer: &mut dyn super::Renderer, _world: &mut World) {} fn initialize(&mut self, _renderer: &mut dyn Renderer, _world: &mut World) {}
fn update(&mut self, renderer: &mut dyn super::Renderer, world: &mut World) { fn update(&mut self, renderer: &mut dyn Renderer, world: &mut World) {
let query = <Read<T>>::query(); let query = <Read<T>>::query();
// retrieve all uniforms buffers that aren't aleady set. these are "dynamic" uniforms, which are set by the user in ShaderUniforms // retrieve all uniforms buffers that aren't aleady set. these are "dynamic" uniforms, which are set by the user in ShaderUniforms
// TODO: this breaks down in multiple ways: // TODO: this breaks down in multiple ways:
@ -381,7 +382,7 @@ where
fn resize( fn resize(
&mut self, &mut self,
_renderer: &mut dyn super::Renderer, _renderer: &mut dyn Renderer,
_world: &mut World, _world: &mut World,
_width: u32, _width: u32,
_height: u32, _height: u32,