Skip to content

Commit

Permalink
Add back portability enumeration support
Browse files Browse the repository at this point in the history
  • Loading branch information
beau-lunarg committed Feb 18, 2025
1 parent 5b6fabb commit a3ea611
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_apps/common/test_app_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,16 @@ Instance InstanceBuilder::build() const
extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
}

#if defined(VK_KHR_portability_enumeration)
bool portability_enumeration_support = detail::check_extension_supported(system.available_extensions, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME);
if (portability_enumeration_support)
{
extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME);
}
#else
bool portability_enumeration_support = false;
#endif

if (!info.headless_context)
{
auto check_add_window_ext = [&](const char* name) -> bool {
Expand Down

0 comments on commit a3ea611

Please sign in to comment.