You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
OpenXR: Improve swapchain logic and fix swapchain update when render target multiplier is changed.
This commit is contained in:
@@ -229,6 +229,10 @@ void OpenXRVulkanExtension::get_usable_swapchain_formats(Vector<int64_t> &p_usab
|
||||
}
|
||||
|
||||
void OpenXRVulkanExtension::get_usable_depth_formats(Vector<int64_t> &p_usable_swap_chains) {
|
||||
// Note, it is very likely we do NOT support any of depth formats where we can combine our stencil support (e.g. _S8_UINT).
|
||||
// Right now this isn't a problem but once stencil support becomes an issue, we need to check for this in the rendering engine
|
||||
// and create a separate buffer for the stencil.
|
||||
|
||||
p_usable_swap_chains.push_back(VK_FORMAT_D24_UNORM_S8_UINT);
|
||||
p_usable_swap_chains.push_back(VK_FORMAT_D32_SFLOAT_S8_UINT);
|
||||
p_usable_swap_chains.push_back(VK_FORMAT_D32_SFLOAT);
|
||||
|
||||
Reference in New Issue
Block a user