mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
Skip TestWin32Handles() if VK_KHR_external_memory_win32 is not present
This commit is contained in:
parent
7ab8483d10
commit
88d7c0da4a
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@ extern const VkAllocationCallbacks* g_Allocs;
|
||||||
extern bool VK_KHR_buffer_device_address_enabled;
|
extern bool VK_KHR_buffer_device_address_enabled;
|
||||||
extern bool VK_EXT_memory_priority_enabled;
|
extern bool VK_EXT_memory_priority_enabled;
|
||||||
extern bool VK_KHR_maintenance5_enabled;
|
extern bool VK_KHR_maintenance5_enabled;
|
||||||
|
extern bool VK_KHR_external_memory_win32_enabled;
|
||||||
extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR;
|
extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR;
|
||||||
void BeginSingleTimeCommands();
|
void BeginSingleTimeCommands();
|
||||||
void EndSingleTimeCommands();
|
void EndSingleTimeCommands();
|
||||||
|
@ -8257,6 +8258,9 @@ static void TestMappingHysteresis()
|
||||||
static void TestWin32Handles()
|
static void TestWin32Handles()
|
||||||
{
|
{
|
||||||
#if VMA_EXTERNAL_MEMORY_WIN32
|
#if VMA_EXTERNAL_MEMORY_WIN32
|
||||||
|
if (!VK_KHR_external_memory_win32_enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
wprintf(L"Test Win32 handles\n");
|
wprintf(L"Test Win32 handles\n");
|
||||||
constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo{
|
constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo{
|
||||||
VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR,
|
VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue