bevy/src/render/pass.rs

9 lines
448 B
Rust
Raw Normal View History

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