summaryrefslogtreecommitdiffstats
path: root/modules/openxr/openxr_api.h
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-08-21 17:45:28 +1000
committerBastiaan Olij <mux213@gmail.com>2023-09-25 17:12:20 +1000
commitd7d334158a0bc86ff5b04ffd4085f092bbe50840 (patch)
tree41c38c3df4a39b159a9bcd6f88f87c9dd213c6b3 /modules/openxr/openxr_api.h
parentdf0a822323a79e1a645f0c6a17d51c7602f23166 (diff)
downloadredot-engine-d7d334158a0bc86ff5b04ffd4085f092bbe50840.tar.gz
Implement OpenXR Foveated rendering support
Diffstat (limited to 'modules/openxr/openxr_api.h')
-rw-r--r--modules/openxr/openxr_api.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/openxr/openxr_api.h b/modules/openxr/openxr_api.h
index 26de535153..89f8f3cbec 100644
--- a/modules/openxr/openxr_api.h
+++ b/modules/openxr/openxr_api.h
@@ -54,7 +54,6 @@
// Godot is currently restricted to C++17 which doesn't allow this notation. Make sure critical fields are set.
// forward declarations, we don't want to include these fully
-class OpenXRVulkanExtension;
class OpenXRInterface;
class OpenXRAPI {
@@ -356,6 +355,7 @@ public:
void pre_render();
bool pre_draw_viewport(RID p_render_target);
+ XrSwapchain get_color_swapchain();
RID get_color_texture();
RID get_depth_texture();
void post_draw_viewport(RID p_render_target);
@@ -370,6 +370,15 @@ public:
double get_render_target_size_multiplier() const;
void set_render_target_size_multiplier(double multiplier);
+ // Foveation settings
+ bool is_foveation_supported() const;
+
+ int get_foveation_level() const;
+ void set_foveation_level(int p_foveation_level);
+
+ bool get_foveation_dynamic() const;
+ void set_foveation_dynamic(bool p_foveation_dynamic);
+
// action map
String get_default_action_map_resource_name();