diff options
author | Jason Ekstrand <[email protected]> | 2017-11-15 20:08:53 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-12-04 10:04:19 -0800 |
commit | cd881dafad9bdb5a8f94ae272c56c7e30ee28d09 (patch) | |
tree | 08ed960d36b565cfc2150f41a15349f903a672a1 /src/vulkan/wsi/wsi_common.c | |
parent | 764fc1643c10ca1f336a99ddbe727313c995b6bb (diff) |
vulkan/wsi: Add wsi_swapchain_init/finish functions
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index 8c883b4daf0..bb35237fb92 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#include "wsi_common.h" +#include "wsi_common_private.h" void wsi_device_init(struct wsi_device *wsi, @@ -30,3 +30,24 @@ wsi_device_init(struct wsi_device *wsi, { memset(wsi, 0, sizeof(*wsi)); } + +VkResult +wsi_swapchain_init(const struct wsi_device *wsi, + struct wsi_swapchain *chain, + VkDevice device, + const VkSwapchainCreateInfoKHR* pCreateInfo, + const VkAllocationCallbacks *pAllocator) +{ + memset(chain, 0, sizeof(*chain)); + + chain->wsi = wsi; + chain->device = device; + chain->alloc = *pAllocator; + + return VK_SUCCESS; +} + +void +wsi_swapchain_finish(struct wsi_swapchain *chain) +{ +} |