Add Vulkan quad integration path
This commit is contained in:
@@ -62,11 +62,19 @@ bool VulkanSwapChain::CreateSwapChainResources() {
|
||||
|
||||
VkSurfaceFormatKHR selectedFormat = formats[0];
|
||||
for (const VkSurfaceFormatKHR& candidate : formats) {
|
||||
if (candidate.format == VK_FORMAT_B8G8R8A8_UNORM) {
|
||||
if (candidate.format == VK_FORMAT_R8G8B8A8_UNORM) {
|
||||
selectedFormat = candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (selectedFormat.format != VK_FORMAT_R8G8B8A8_UNORM) {
|
||||
for (const VkSurfaceFormatKHR& candidate : formats) {
|
||||
if (candidate.format == VK_FORMAT_B8G8R8A8_UNORM) {
|
||||
selectedFormat = candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
m_surfaceFormat = selectedFormat.format;
|
||||
|
||||
if ((capabilities.supportedUsageFlags & VK_IMAGE_USAGE_TRANSFER_DST_BIT) == 0 ||
|
||||
|
||||
Reference in New Issue
Block a user