zray 0.0.0

A modular GPU renderer supporting voxel and rasterization pipelines
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait Renderer {
    fn render(
        &mut self,
        device: &wgpu::Device,
        queue: &wgpu::Queue,
        view: &wgpu::TextureView,
        window_size: winit::dpi::PhysicalSize<u32>,
    ) -> Result<(), anyhow::Error>;

    fn resize(&mut self, device: &wgpu::Device, new_size: winit::dpi::PhysicalSize<u32>);
}