diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-11-08 16:32:27 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-11-08 16:32:27 +0300 |
commit | 0fae43efb25da6ea7a56b40da449029d53d12997 (patch) | |
tree | aa1cd2e70e599b6e6f8d418396de999e44ebfa18 | |
parent | 31ecc302837236c22a95286c480155c0ef7e9424 (diff) |
Apply formatting.temp-ghost-vulkan
-rw-r--r-- | intern/ghost/GHOST_IWindow.h | 12 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 10 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 7 |
3 files changed, 18 insertions, 11 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 9a8a97ed43f..33b9d160f0f 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -215,12 +215,12 @@ class GHOST_IWindow { * Needs to be called after each swap events as the framebuffer will change. * \return A boolean success indicator. */ - virtual GHOST_TSuccess getVulkanBackbuffer(void * image, - void * framebuffer, - void * command_buffer, - void * render_pass, - void * extent, - uint32_t * fb_id) = 0; + virtual GHOST_TSuccess getVulkanBackbuffer(void *image, + void *framebuffer, + void *command_buffer, + void *render_pass, + void *extent, + uint32_t *fb_id) = 0; /** * Invalidates the contents of this window. diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index 3255d667e41..5e9a1703152 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -5594,9 +5594,13 @@ GHOST_IContext *GHOST_SystemWayland::createOffscreenContext(GHOST_GLSettings glS if (glSettings.context_type == GHOST_kDrawingContextTypeVulkan) { GHOST_Context *context = new GHOST_ContextVK(false, GHOST_kVulkanPlatformWayland, - 0, NULL, - wl_surface, display_->wl_display, - 1, 0, debug_context); + 0, + NULL, + wl_surface, + display_->wl_display, + 1, + 0, + debug_context); if (!context->initializeDrawingContext()) { delete context; diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp index f3cea98a065..b0484d3ceb8 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cpp +++ b/intern/ghost/intern/GHOST_WindowWayland.cpp @@ -922,10 +922,13 @@ GHOST_Context *GHOST_WindowWayland::newDrawingContext(GHOST_TDrawingContextType case GHOST_kDrawingContextTypeVulkan: context = new GHOST_ContextVK(m_wantStereoVisual, GHOST_kVulkanPlatformWayland, - 0, NULL, + 0, + NULL, window_->wl_surface, system_->wl_display(), - 1, 0, true); + 1, + 0, + true); break; #endif |