euv-core 0.53.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Most recent measured GPU compute pass duration in nanoseconds populated by `addCompletedHandler:`.
pub(crate) static LAST_GPU_COMPUTE_NS: AtomicU64 = AtomicU64::new(0);
/// Most recent measured GPU render pass duration in nanoseconds populated by `addCompletedHandler:`.
pub(crate) static LAST_GPU_RENDER_NS: AtomicU64 = AtomicU64::new(0);
/// Monotonic GPU completion fence counter incremented atomically on every finished command buffer.
pub(crate) static COMPLETED_GPU_FENCE: AtomicU64 = AtomicU64::new(0);
/// Monotonic GPU submission fence counter incremented atomically on every committed command buffer.
pub(crate) static SUBMITTED_GPU_FENCE: AtomicU64 = AtomicU64::new(0);

#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_COMPUTE_CACHE: OnceLock<MetalComputePipelineCache> = OnceLock::new();
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_COMPUTE_SELECTORS: OnceLock<MetalComputeSelectors> = OnceLock::new();
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_COMPUTE_COMPLETED_BLOCK_ADDR: OnceLock<usize> = OnceLock::new();