OpenXRVkCommon.h 925 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. namespace OpenXRVk::Platform
  10. {
  11. //! Initializes the XR loader for this platform.
  12. bool OpenXRInitializeLoader();
  13. //! Called when the device is beginning a frame for processing.
  14. //! @note This function is called from the thread related to the presentation queue.
  15. void OpenXRBeginFrameInternal();
  16. //! Called when the device is ending a frame for processing.
  17. //! @note This function is called from the thread related to the presentation queue.
  18. void OpenXREndFrameInternal();
  19. //! Called after the EndFrame has been executed.
  20. //! @note This function is called from the main thread.
  21. void OpenXRPostFrameInternal();
  22. } // namespace OpenXRVk::Platform