Skip to content

Commit

Permalink
Add extensions required by VK_IMAGE_LAYOUT_PRESENT_SRC_KHR
Browse files Browse the repository at this point in the history
  • Loading branch information
krOoze committed May 16, 2024
1 parent 4f249ca commit e8e66c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WSI/DxgiWsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ VkExtent2D currentWndSize;

std::vector<const char*> getPlatformSurfaceExtensionNames(){
return {
VK_KHR_SURFACE_EXTENSION_NAME, // required by VK_KHR_swapchain, which we need to use LAYOUT_PRESENT
VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME
};
};

const std::vector<const char*> requiredDeviceExtensions = {
VK_KHR_SWAPCHAIN_EXTENSION_NAME, // to be able to use LAYOUT_PRESENT; would LAYOUT_GENERAL work?
VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME,
VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME,
VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME,
Expand Down

0 comments on commit e8e66c0

Please sign in to comment.