2
0

class_openxrframesynthesisextension.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRFrameSynthesisExtension.xml.
  6. .. _class_OpenXRFrameSynthesisExtension:
  7. OpenXRFrameSynthesisExtension
  8. =============================
  9. **Inherits:** :ref:`OpenXRExtensionWrapper<class_OpenXRExtensionWrapper>` **<** :ref:`Object<class_Object>`
  10. The OpenXR Frame synthesis extension allows for advanced reprojection at low(er) framerates.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class implements the `OpenXR Frame synthesis extension <https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#XR_EXT_frame_synthesis>`__. When enabled in the project settings and supported by the XR runtime in use, frame synthesis uses advanced reprojection techniques to inject additional frames so that your XR experience hits the full frame rate of the device.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------+------------------------------------------------------------------------------------------------+-----------+
  21. | :ref:`bool<class_bool>` | :ref:`enabled<class_OpenXRFrameSynthesisExtension_property_enabled>` | ``false`` |
  22. +-------------------------+------------------------------------------------------------------------------------------------+-----------+
  23. | :ref:`bool<class_bool>` | :ref:`relax_frame_interval<class_OpenXRFrameSynthesisExtension_property_relax_frame_interval>` | ``false`` |
  24. +-------------------------+------------------------------------------------------------------------------------------------+-----------+
  25. .. rst-class:: classref-reftable-group
  26. Methods
  27. -------
  28. .. table::
  29. :widths: auto
  30. +-------------------------+--------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`is_available<class_OpenXRFrameSynthesisExtension_method_is_available>`\ (\ ) |const| |
  32. +-------------------------+--------------------------------------------------------------------------------------------+
  33. | |void| | :ref:`skip_next_frame<class_OpenXRFrameSynthesisExtension_method_skip_next_frame>`\ (\ ) |
  34. +-------------------------+--------------------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_OpenXRFrameSynthesisExtension_property_enabled:
  41. .. rst-class:: classref-property
  42. :ref:`bool<class_bool>` **enabled** = ``false`` :ref:`🔗<class_OpenXRFrameSynthesisExtension_property_enabled>`
  43. .. rst-class:: classref-property-setget
  44. - |void| **set_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  45. - :ref:`bool<class_bool>` **is_enabled**\ (\ )
  46. Enable frame synthesis. When ``true`` motion vector and depth data is provided to the XR runtime.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_OpenXRFrameSynthesisExtension_property_relax_frame_interval:
  50. .. rst-class:: classref-property
  51. :ref:`bool<class_bool>` **relax_frame_interval** = ``false`` :ref:`🔗<class_OpenXRFrameSynthesisExtension_property_relax_frame_interval>`
  52. .. rst-class:: classref-property-setget
  53. - |void| **set_relax_frame_interval**\ (\ value\: :ref:`bool<class_bool>`\ )
  54. - :ref:`bool<class_bool>` **get_relax_frame_interval**\ (\ )
  55. If ``true`` this informs the XR runtime we will be providing frames at a greatly reduced rate. Enable this when you expect your application to run at low framerates and wish to inject multiple reprojected frames.
  56. .. rst-class:: classref-section-separator
  57. ----
  58. .. rst-class:: classref-descriptions-group
  59. Method Descriptions
  60. -------------------
  61. .. _class_OpenXRFrameSynthesisExtension_method_is_available:
  62. .. rst-class:: classref-method
  63. :ref:`bool<class_bool>` **is_available**\ (\ ) |const| :ref:`🔗<class_OpenXRFrameSynthesisExtension_method_is_available>`
  64. Returns ``true`` if frame synthesis is enabled in the project settings and the current XR runtime supports frame synthesis. The value returned will only be valid once OpenXR has been initialized.
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_OpenXRFrameSynthesisExtension_method_skip_next_frame:
  68. .. rst-class:: classref-method
  69. |void| **skip_next_frame**\ (\ ) :ref:`🔗<class_OpenXRFrameSynthesisExtension_method_skip_next_frame>`
  70. Queues the next frame to be skipped when supplying motion vector and depth data. Call this after teleporting your player or a similar action has moved the player to prevent incorrect reprojection results due to this movement.
  71. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  72. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  73. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  74. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  75. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  76. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  77. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  78. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  79. .. |void| replace:: :abbr:`void (No return value.)`