This is an spinoff from forum post xrOS+Metal example code here
Am porting Warren Moore's example here
Have the most of the conversion to Swift complete but am stuck at a couple places
ar_data_providers_create_with_data_providers(...)
cp_time_to_cf_time_interval(...)
Any hints on how to track these down? Thanks!
Hi Muse, I have tracked it down to this block. Cheers.
extension LayerRenderer.Clock.Instant {
func toTimeInterval() -> TimeInterval {
let duration = LayerRenderer.Clock.Instant.epoch.duration(to: self)
let secondsPart = Double(duration.components.seconds)
let attosecondsPart = Double(duration.components.attoseconds) / 1e18
return secondsPart + attosecondsPart
}
}