mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
add default draw target impl
This commit is contained in:
parent
1ac33b1477
commit
4eaf730b8a
2 changed files with 7 additions and 14 deletions
|
@ -18,10 +18,12 @@ pub trait DrawTarget {
|
|||
);
|
||||
fn setup(
|
||||
&mut self,
|
||||
world: &World,
|
||||
resources: &Resources,
|
||||
renderer: &mut dyn Renderer,
|
||||
pipeline_handle: Handle<PipelineDescriptor>,
|
||||
);
|
||||
_world: &World,
|
||||
_resources: &Resources,
|
||||
_renderer: &mut dyn Renderer,
|
||||
_pipeline_handle: Handle<PipelineDescriptor>,
|
||||
) {
|
||||
|
||||
}
|
||||
fn get_name(&self) -> String;
|
||||
}
|
||||
|
|
|
@ -58,15 +58,6 @@ impl DrawTarget for MeshesDrawTarget {
|
|||
}
|
||||
}
|
||||
|
||||
fn setup(
|
||||
&mut self,
|
||||
_world: &World,
|
||||
_resources: &Resources,
|
||||
_renderer: &mut dyn Renderer,
|
||||
_pipeline_handle: Handle<PipelineDescriptor>,
|
||||
) {
|
||||
}
|
||||
|
||||
fn get_name(&self) -> String {
|
||||
resource_name::draw_target::MESHES.to_string()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue