mirror of
https://github.com/yquake2/ref_vk.git
synced 2025-02-18 10:02:22 +00:00
Hide VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME for non MoltenVK
VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME is a provisional extension and must be used with caution. https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_portability_subset.html
This commit is contained in:
parent
8ca794ab68
commit
dcb6e9f7d0
2 changed files with 5 additions and 5 deletions
|
@ -1752,7 +1752,7 @@ qboolean QVk_Init(void)
|
||||||
if (vk_validation->value)
|
if (vk_validation->value)
|
||||||
extCount++;
|
extCount++;
|
||||||
|
|
||||||
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)
|
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) && defined(__APPLE__)
|
||||||
extCount++;
|
extCount++;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1772,7 +1772,7 @@ qboolean QVk_Init(void)
|
||||||
wantedExtensions[extCount - 1] = VK_EXT_DEBUG_UTILS_EXTENSION_NAME;
|
wantedExtensions[extCount - 1] = VK_EXT_DEBUG_UTILS_EXTENSION_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)
|
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) && defined(__APPLE__)
|
||||||
extCount++;
|
extCount++;
|
||||||
wantedExtensions[extCount - 1] = VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME;
|
wantedExtensions[extCount - 1] = VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1789,7 +1789,7 @@ qboolean QVk_Init(void)
|
||||||
.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
|
||||||
.pNext = NULL,
|
.pNext = NULL,
|
||||||
.pApplicationInfo = &appInfo,
|
.pApplicationInfo = &appInfo,
|
||||||
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)
|
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) && defined(__APPLE__)
|
||||||
.flags = VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR,
|
.flags = VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR,
|
||||||
#endif
|
#endif
|
||||||
.enabledLayerCount = 0,
|
.enabledLayerCount = 0,
|
||||||
|
|
|
@ -80,7 +80,7 @@ static void getBestPhysicalDevice(const VkPhysicalDevice *devices, int preferred
|
||||||
// no required extensions? try next device
|
// no required extensions? try next device
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)
|
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) && defined(__APPLE__)
|
||||||
if (!deviceExtensionsSupported(&devices[i], VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME))
|
if (!deviceExtensionsSupported(&devices[i], VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME))
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
@ -237,7 +237,7 @@ static VkResult createLogicalDevice()
|
||||||
|
|
||||||
const char *deviceExtensions[] = {
|
const char *deviceExtensions[] = {
|
||||||
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
|
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
|
||||||
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)
|
#if defined(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) && defined(__APPLE__)
|
||||||
VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME,
|
VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue