2019-12-02 04:03:04 +00:00
|
|
|
pub mod camera;
|
|
|
|
pub mod shader;
|
2019-12-02 09:31:07 +00:00
|
|
|
pub mod mesh;
|
2019-12-01 09:16:15 +00:00
|
|
|
mod forward;
|
|
|
|
mod shadow;
|
2019-12-02 04:03:04 +00:00
|
|
|
mod light;
|
|
|
|
mod pass;
|
2019-12-01 09:16:15 +00:00
|
|
|
|
|
|
|
pub use forward::{ForwardPass, ForwardUniforms};
|
2019-12-02 04:03:04 +00:00
|
|
|
pub use shadow::ShadowPass;
|
|
|
|
pub use light::*;
|
|
|
|
pub use shader::*;
|
|
|
|
pub use pass::*;
|
|
|
|
|
2019-12-02 09:31:07 +00:00
|
|
|
use wgpu::BindGroup;
|
|
|
|
|
2019-12-02 04:03:04 +00:00
|
|
|
pub struct UniformBuffer {
|
|
|
|
pub buffer: wgpu::Buffer,
|
|
|
|
pub size: u64,
|
2019-12-02 09:31:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Rendered {
|
|
|
|
pub bind_group: Option<BindGroup>,
|
2019-12-02 04:03:04 +00:00
|
|
|
}
|