mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
remove super
This commit is contained in:
parent
3b0b40a79d
commit
8f1c9e9333
1 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue