use tessera_ui::{
SampleRegion, compute::ComputeResourceRef, renderer::compute::command::ComputeCommand,
};
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct ContrastCommand {
pub contrast: f32,
pub mean_result_handle: ComputeResourceRef,
}
impl ContrastCommand {
pub fn new(contrast: f32, mean_result_handle: ComputeResourceRef) -> Self {
Self {
contrast,
mean_result_handle,
}
}
}
impl ComputeCommand for ContrastCommand {
fn barrier(&self) -> tessera_ui::SampleRegion {
SampleRegion::ZERO_PADDING_LOCAL
}
}