1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Merge pull request #99768 from dsnopek/openxr-vulkan-foveated-rendering

OpenXR: Use the `XR_FB_foveation_vulkan` extension to get the density map for VRS
This commit is contained in:
Thaddeus Crews
2025-04-17 09:14:23 -05:00
24 changed files with 178 additions and 18 deletions

View File

@@ -132,7 +132,7 @@ void VRS::update_vrs_texture(RID p_vrs_fb, RID p_render_target) {
#ifndef XR_DISABLED
} else if (vrs_mode == RS::VIEWPORT_VRS_XR) {
Ref<XRInterface> interface = XRServer::get_singleton()->get_primary_interface();
if (interface.is_valid()) {
if (interface.is_valid() && interface->get_vrs_texture_format() == XRInterface::XR_VRS_TEXTURE_FORMAT_UNIFIED) {
RID vrs_texture = interface->get_vrs_texture();
if (vrs_texture.is_valid()) {
RID rd_texture = texture_storage->texture_get_rd_texture(vrs_texture);