diff options
| author | Aaron Ruby <aruby@qnx.com> | 2025-09-17 13:17:37 -0400 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2025-09-17 13:22:56 -0600 |
| commit | 95cfb8b1ba7fbcbe1383302ff286808c34e1fb9e (patch) | |
| tree | e0f894f975a0bb10ee52d9a565cb68396f8f572c /cube/cube.cpp | |
| parent | 49085bcb45caaedf98824ce31360215ea16fc34a (diff) | |
| download | usermoji-95cfb8b1ba7fbcbe1383302ff286808c34e1fb9e.tar.xz | |
cube.cpp: Wrap execute<WsiPlatform::display> impl around VK_USE_PLATFORM_DISPLAY_KHR
This only needs implemeneted if VK_USE_PLATFORM_DISPLAY_KHR is defined,
otherwise run<WsiPlatform::display>() impl is not available!
Diffstat (limited to 'cube/cube.cpp')
| -rw-r--r-- | cube/cube.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp index fd48810a..bad2cccb 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -4149,6 +4149,7 @@ void Demo::execute() { run<WSI_PLATFORM>(); } +#if defined(VK_USE_PLATFORM_DISPLAY_KHR) template <> void Demo::execute<WsiPlatform::display>() { select_physical_device(); @@ -4161,6 +4162,7 @@ void Demo::execute<WsiPlatform::display>() { run<WsiPlatform::display>(); } +#endif int main(int argc, char **argv) { Demo demo; |
