cuneus 0.5.0

A WGPU-based shader development tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Core;
use winit::event::WindowEvent;

pub trait ShaderManager {
    fn init(core: &Core) -> Self
    where
        Self: Sized;
    fn resize(&mut self, _core: &Core) {}
    fn update(&mut self, _core: &Core) {}
    fn render(&mut self, core: &Core) -> Result<(), crate::SurfaceError>;
    fn handle_input(&mut self, _core: &Core, _event: &WindowEvent) -> bool {
        false
    }
}