Increase backbuffers support for Vulkan on Linux to 8
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
#ifndef VULKAN_BACK_BUFFERS_COUNT
|
||||
#define VULKAN_BACK_BUFFERS_COUNT 2
|
||||
#endif
|
||||
#ifndef VULKAN_BACK_BUFFERS_COUNT_MAX
|
||||
#define VULKAN_BACK_BUFFERS_COUNT_MAX 4
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Default amount of frames to wait until resource delete.
|
||||
|
||||
@@ -393,7 +393,7 @@ bool GPUSwapChainVulkan::CreateSwapChain(int32 width, int32 height)
|
||||
VALIDATE_VULKAN_RESULT(vkGetSwapchainImagesKHR(device, _swapChain, &imagesCount, nullptr));
|
||||
if (imagesCount < 1 || imagesCount > VULKAN_BACK_BUFFERS_COUNT_MAX)
|
||||
{
|
||||
LOG(Warning, "Vulkan swapchain got invalid amount of backbuffers {} instead of {} (min {})", imagesCount, VULKAN_BACK_BUFFERS_COUNT, swapChainInfo.minImageCount);
|
||||
LOG(Warning, "Vulkan swapchain got invalid amount of backbuffers {} instead of {} (min {})", imagesCount, VULKAN_BACK_BUFFERS_COUNT, swapChainInfo.minImageCount);
|
||||
return true;
|
||||
}
|
||||
VkImage images[VULKAN_BACK_BUFFERS_COUNT_MAX];
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
#if GRAPHICS_API_VULKAN && PLATFORM_LINUX
|
||||
|
||||
// Support more backbuffers in case driver decides to use more (https://gitlab.freedesktop.org/apinheiro/mesa/-/issues/9)
|
||||
#define VULKAN_BACK_BUFFERS_COUNT_MAX 8
|
||||
|
||||
/// <summary>
|
||||
/// The implementation for the Vulkan API support for Linux platform.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user