mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
OpenXR: Improve swapchain logic and fix swapchain update when render target multiplier is changed.
This commit is contained in:
parent
9d6bdbc56e
commit
c388fe2ba7
4 changed files with 346 additions and 241 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue