use super::*;
#[derive(Clone, Data, Debug, Default, PartialEq)]
pub struct RtGBuffer {
#[get(type(copy))]
pub(crate) width: u32,
#[get(type(copy))]
pub(crate) height: u32,
pub(crate) albedo: Vec<Vec3>,
pub(crate) normal: Vec<Vec3>,
pub(crate) depth: Vec<f32>,
pub(crate) hit_mask: Vec<u8>,
}
#[derive(Clone, Data, Debug, Default, PartialEq)]
pub struct TemporalAccumulator {
#[get(type(copy))]
pub(crate) width: u32,
#[get(type(copy))]
pub(crate) height: u32,
pub(crate) radiance: Vec<Vec3>,
pub(crate) moment_1: Vec<f32>,
pub(crate) moment_2: Vec<f32>,
pub(crate) sample_counts: Vec<u32>,
#[get(type(copy))]
pub(crate) camera_fingerprint: u64,
#[get(type(copy))]
pub(crate) scene_revision: u64,
#[get(type(copy))]
pub(crate) max_history_samples: u32,
#[get(type(copy))]
pub(crate) reset_count: u64,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct SvgfConfig {
#[get(type(copy))]
pub(crate) iterations: u32,
#[get(type(copy))]
pub(crate) phi_normal: f32,
#[get(type(copy))]
pub(crate) phi_depth: f32,
#[get(type(copy))]
pub(crate) phi_luma: f32,
#[get(type(copy))]
pub(crate) variance_floor: f32,
#[get(type(copy))]
pub(crate) demodulate_albedo: bool,
}
#[derive(Clone, Data, Debug, Default, PartialEq)]
pub struct SvgfDenoiser {
#[get(type(copy))]
pub(crate) config: SvgfConfig,
#[get(type(copy))]
pub(crate) width: u32,
#[get(type(copy))]
pub(crate) height: u32,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) ping_color: Vec<Vec3>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) pong_color: Vec<Vec3>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) ping_variance: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) pong_variance: Vec<f32>,
}