tessera_ui/renderer/compute/command.rs
1//! Compute command trait and related types.
2//!
3//! This module defines the `ComputeCommand` trait that marks structs as compute operations
4//! that can be processed by the GPU compute pipeline system.
5
6use crate::{BarrierRequirement, dyn_eq_compute::DynPartialEqCompute, renderer::command::AsAny};
7
8/// Trait for GPU compute operations that can be dispatched through the unified command system.
9pub trait ComputeCommand: DynPartialEqCompute + AsAny + Send + Sync {
10 fn barrier(&self) -> BarrierRequirement;
11}