aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorRichard S. Wright Jr <richard@lunarg.com>2021-01-06 13:03:18 -0500
committerRichard S. Wright Jr <58573781+richard-lunarg@users.noreply.github.com>2021-01-06 16:44:29 -0500
commitca51bc7d1325cbfd66cd52f1f0898e5311d9120e (patch)
treef1ace559fa5e2e9bd82e88369e16ab8efa7c1c4c /cube/cube.cpp
parent4cc0932495ec1eb132c309473b8efc0b6b0d75b3 (diff)
downloadusermoji-ca51bc7d1325cbfd66cd52f1f0898e5311d9120e.tar.xz
vkcube: Updated to support portability extension properly
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index e9f17757..4f66253e 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -1110,6 +1110,9 @@ void Demo::init_vk() {
VERIFY(result == vk::Result::eSuccess);
for (uint32_t i = 0; i < instance_extension_count; i++) {
+ if (!strcmp(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME, instance_extensions[i].extensionName)) {
+ extension_names[enabled_extension_count++] = VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME;
+ }
if (!strcmp(VK_KHR_SURFACE_EXTENSION_NAME, instance_extensions[i].extensionName)) {
surfaceExtFound = 1;
extension_names[enabled_extension_count++] = VK_KHR_SURFACE_EXTENSION_NAME;
@@ -1149,7 +1152,6 @@ void Demo::init_vk() {
platformSurfaceExtFound = 1;
extension_names[enabled_extension_count++] = VK_EXT_METAL_SURFACE_EXTENSION_NAME;
}
-
#endif
assert(enabled_extension_count < 64);
}
@@ -1284,6 +1286,9 @@ void Demo::init_vk() {
swapchainExtFound = 1;
extension_names[enabled_extension_count++] = VK_KHR_SWAPCHAIN_EXTENSION_NAME;
}
+ if (!strcmp(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME, device_extensions[i].extensionName)) {
+ extension_names[enabled_extension_count++] = VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME;
+ }
assert(enabled_extension_count < 64);
}
}