mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
9 lines
441 B
Rust
9 lines
441 B
Rust
|
use crate::render::render_graph::RenderGraphData;
|
||
|
use legion::world::World;
|
||
|
|
||
|
pub trait Pass {
|
||
|
fn initialize(&self, render_graph: &mut RenderGraphData);
|
||
|
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>>;
|
||
|
fn should_repeat(&self) -> bool;
|
||
|
fn resize(&self, render_graph: &mut RenderGraphData);
|
||
|
}
|