Skip to main content

record_clock_pair

Function record_clock_pair 

Source
pub fn record_clock_pair(cpu_ns: u64, gpu_ticks: u64)
Expand description

Record a (cpu_ns, gpu_ticks) snapshot from MTLDevice.sampleTimestamps. Most recent snapshot wins.

Called from crate::CommandEncoder::resolve_dispatch_samples on the first resolve after a reset (or at any other CB boundary if the encoder chooses to refresh — both legal).