using System; using Unity.Collections; using Unity.XR.CoreUtils.Collections; using UnityEngine.XR.ARSubsystems; namespace UnityEngine.XR.ARFoundation { interface ISwapchainStrategy : IDisposable { /// /// Given an array of texture descriptors for this frame, returns if the textures for /// all descriptors were successfully updated, and returns the corresponding objects. /// /// If any texture was not successfully updated, returns . /// internal bool TryUpdateTexturesForFrame( NativeArray textureDescriptors, out ReadOnlyListSpan textureInfos); /// /// Destroy all textures to free memory. /// /// /// It is expected that can be called again after this method, /// in which case textures should be recreated. /// public void DestroyTextures(); } }