use super::*;
#[derive(Clone, Copy, Data, Debug)]
pub struct TsrFrameParams {
#[get(type(copy))]
pub(crate) src_width: usize,
#[get(type(copy))]
pub(crate) src_height: usize,
#[get(type(copy))]
pub(crate) dst_width: usize,
#[get(type(copy))]
pub(crate) dst_height: usize,
#[get(type(copy))]
pub(crate) camera_position: Vec3,
#[get(type(copy))]
pub(crate) camera_forward: Vec3,
#[get(type(copy))]
pub(crate) camera_right_scaled: Vec3,
#[get(type(copy))]
pub(crate) camera_up_scaled: Vec3,
#[get(type(copy))]
pub(crate) view_projection: Mat4,
#[get(type(copy))]
pub(crate) jitter_offset: (f32, f32),
#[get(type(copy))]
pub(crate) sharpness: f32,
}
#[derive(Clone, Data, Debug)]
pub struct TsrUpscaler {
#[get(type(copy))]
pub(crate) history_width: usize,
#[get(type(copy))]
pub(crate) history_height: usize,
#[get(type(copy))]
pub(crate) has_history: bool,
#[get(type(copy))]
pub(crate) prev_view_projection: Mat4,
#[get(type(copy))]
pub(crate) accumulated_frames: u64,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) history_rgba: Vec<u8>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) next_history_rgba: Vec<u8>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) history_inv_w: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) next_inv_w: Vec<f32>,
}
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub struct FramePacingTelemetry3D {
#[get(type(copy))]
pub(crate) budget_ms: f32,
#[get(type(copy))]
pub(crate) ema_frame_ms: f32,
#[get(type(copy))]
pub(crate) p99_est_ms: f32,
#[get(type(copy))]
pub(crate) budget_utilization: f32,
#[get(type(copy))]
pub(crate) effective_resolution_scale: f32,
#[get(type(copy))]
pub(crate) effective_rt_stride_bias: usize,
#[get(type(copy))]
pub(crate) effective_lod_bias: f32,
#[get(type(copy))]
pub(crate) stability_score: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct AdaptiveFrameGovernor {
#[get(type(copy))]
pub(crate) target_hz: f32,
#[get(type(copy))]
pub(crate) min_scale: f32,
#[get(type(copy))]
pub(crate) max_scale: f32,
#[get(type(copy))]
pub(crate) current_scale: f32,
#[get(type(copy))]
pub(crate) rt_stride_bias: usize,
#[get(type(copy))]
pub(crate) lod_bias: f32,
#[get(type(copy))]
pub(crate) ema_frame_ms: f32,
#[get(type(copy))]
pub(crate) ema_jitter_ms: f32,
#[get(type(copy))]
pub(crate) p99_est_ms: f32,
#[get(type(copy))]
pub(crate) last_frame_ms: f32,
#[get(type(copy))]
pub(crate) under_budget_streak: u32,
#[get(type(copy))]
pub(crate) over_budget_streak: u32,
#[get(type(copy))]
pub(crate) hysteresis_frames: u32,
#[get(type(copy))]
pub(crate) total_frames: u64,
}