/// <summary> /// Camera removed /// </summary> /// <param name="sender">The sender</param> /// <param name="args">The args</param> public void OnCameraRemoved(HolographicSpace sender, HolographicSpaceCameraRemovedEventArgs args) { Task task2 = new Task(() => { }); task2.Start(); // Before letting this callback return, ensure that all references to the back buffer // are released. // Since this function may be called at any time, the RemoveHolographicCamera function // waits until it can get a lock on the set of holographic camera resources before // deallocating resources for this camera. At 60 frames per second this wait should // not take long. this.deviceResources.RemoveHolographicCamera(args.Camera); }
public void OnCameraRemoved( HolographicSpace sender, HolographicSpaceCameraRemovedEventArgs args ) { var task2 = new Task(() => { // // TODO: Asynchronously unload or deactivate content resources (not back buffer // resources) that are specific only to the camera that was removed. // }); task2.Start(); // Before letting this callback return, ensure that all references to the back buffer // are released. // Since this function may be called at any time, the RemoveHolographicCamera function // waits until it can get a lock on the set of holographic camera resources before // deallocating resources for this camera. At 60 frames per second this wait should // not take long. _deviceResources.RemoveHolographicCamera(args.Camera); }
public void OnCameraRemoved(HolographicSpace sender, HolographicSpaceCameraRemovedEventArgs args) { Task task2 = new Task(() => { }); task2.Start(); // Before letting this callback return, ensure that all references to the back buffer // are released. // Since this function may be called at any time, the RemoveHolographicCamera function // waits until it can get a lock on the set of holographic camera resources before // deallocating resources for this camera. At 60 frames per second this wait should // not take long. this.deviceResources.RemoveHolographicCamera(args.Camera); }