mirror of
https://github.com/bevyengine/bevy
synced 2025-01-13 13:49:10 +00:00
18 lines
502 B
Rust
18 lines
502 B
Rust
use crate::render::RenderGraphData;
|
|
use legion::world::World;
|
|
|
|
pub trait RenderResourceManager {
|
|
fn initialize(&self, render_graph: &mut RenderGraphData, world: &mut World);
|
|
fn update<'a>(
|
|
&mut self,
|
|
render_graph: &mut RenderGraphData,
|
|
encoder: &'a mut wgpu::CommandEncoder,
|
|
world: &mut World,
|
|
);
|
|
fn resize<'a>(
|
|
&self,
|
|
render_graph: &mut RenderGraphData,
|
|
encoder: &'a mut wgpu::CommandEncoder,
|
|
world: &mut World,
|
|
);
|
|
}
|