2019-12-02 04:03:04 +00:00
|
|
|
use legion::world::World;
|
2019-12-02 23:19:56 +00:00
|
|
|
use wgpu::{Buffer, CommandEncoder, Device, SwapChainDescriptor, SwapChainOutput};
|
2019-12-24 00:13:05 +00:00
|
|
|
use crate::render::RenderResources;
|
2019-12-02 04:03:04 +00:00
|
|
|
|
|
|
|
pub trait Pass {
|
2019-12-24 00:13:05 +00:00
|
|
|
fn render(&mut self, device: &Device, frame: &SwapChainOutput, encoder: &mut CommandEncoder, world: &mut World, render_resources: &RenderResources);
|
2019-12-02 23:19:56 +00:00
|
|
|
fn resize(&mut self, device: &Device, frame: &SwapChainDescriptor);
|
|
|
|
fn get_camera_uniform_buffer(&self) -> Option<&Buffer>;
|
2019-12-02 04:03:04 +00:00
|
|
|
}
|