comfy_wgpu/
y_sort.rs

1use crate::*;
2
3static Y_SORT_FLAGS: Lazy<AtomicRefCell<HashMap<i32, bool>>> =
4    Lazy::new(|| AtomicRefCell::new(HashMap::default()));
5
6pub fn set_y_sort(z_index: i32, value: bool) {
7    Y_SORT_FLAGS.borrow_mut().insert(z_index, value);
8}
9
10pub fn get_y_sort(z_index: i32) -> bool {
11    *Y_SORT_FLAGS.borrow().get(&z_index).unwrap_or(&false)
12}