euv-core 0.48.2

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
#[cfg(any(
    target_os = "macos",
    target_os = "ios",
    target_os = "windows",
    target_os = "linux",
    target_os = "android"
))]
use super::*;

/// Lazily initialized Objective-C selector table eliminating per-frame `CString` and `sel_registerName` overhead on Apple Metal.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_SELECTORS: OnceLock<MetalSelectors> = OnceLock::new();

/// Process-wide cached Metal device, command queue, binary-archived shader library, and render pipelines.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_SHARED_PIPELINE: OnceLock<MetalSharedPipelineCache> = OnceLock::new();

/// Most recent Metal GPU presentation timestamp in nanoseconds populated by `addPresentedHandler:`.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_LAST_PRESENTED_NS: AtomicU64 = AtomicU64::new(0);

/// Most recent Metal GPU execution duration in nanoseconds (`GPUEndTime - GPUStartTime`) populated by `addPresentedHandler:`.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_LAST_GPU_EXEC_NS: AtomicU64 = AtomicU64::new(0);

/// Static descriptor for the zero-allocation Objective-C global handler blocks.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_BLOCK_DESCRIPTOR: ObjcBlockDescriptor = ObjcBlockDescriptor {
    reserved: 0,
    size: size_of::<ObjcGlobalBlock>(),
};

/// Process-lifetime pinned `ObjcGlobalBlock` address for `-[MTLDrawable addPresentedHandler:]`.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_PRESENTED_BLOCK_ADDR: OnceLock<usize> = OnceLock::new();

/// Process-lifetime pinned `ObjcGlobalBlock` address for `-[MTLCommandBuffer addCompletedHandler:]`.
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub(crate) static METAL_COMPLETED_BLOCK_ADDR: OnceLock<usize> = OnceLock::new();

/// Process-wide cached Windows Direct3D 12 DLL probe result.
#[cfg(target_os = "windows")]
pub(crate) static WINDOWS_D3D12_CACHE: OnceLock<WindowsD3d12ProbeCache> = OnceLock::new();

/// Process-wide cached Linux / Android Vulkan ICD loader handle and probe result.
#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) static VULKAN_PROBE_CACHE: OnceLock<VulkanProbeCache> = OnceLock::new();