diff options
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) +{ +} |