mirror of
https://github.com/bevyengine/bevy
synced 2024-12-25 20:43:07 +00:00
8 lines
No EOL
376 B
Rust
8 lines
No EOL
376 B
Rust
use legion::world::World;
|
|
use wgpu::{Buffer, CommandEncoder, Device, SwapChainDescriptor, SwapChainOutput};
|
|
|
|
pub trait Pass {
|
|
fn render(&mut self, device: &Device, frame: &SwapChainOutput, encoder: &mut CommandEncoder, world: &mut World);
|
|
fn resize(&mut self, device: &Device, frame: &SwapChainDescriptor);
|
|
fn get_camera_uniform_buffer(&self) -> Option<&Buffer>;
|
|
} |