bevy/src/render/render_graph/pass.rs

16 lines
489 B
Rust
Raw Normal View History

2020-01-08 06:35:07 +00:00
use crate::render::render_graph::RenderGraphData;
use legion::world::World;
pub trait Pass {
fn initialize(&self, render_graph: &mut RenderGraphData);
2020-01-11 10:11:27 +00:00
fn begin<'a>(
&mut self,
render_graph: &mut RenderGraphData,
world: &mut World,
encoder: &'a mut wgpu::CommandEncoder,
frame: &'a wgpu::SwapChainOutput,
) -> Option<wgpu::RenderPass<'a>>;
2020-01-08 06:35:07 +00:00
fn should_repeat(&self) -> bool;
fn resize(&self, render_graph: &mut RenderGraphData);
2020-01-11 10:11:27 +00:00
}