summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/common.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2021-10-23 21:04:51 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2021-11-03 14:09:27 +0100
commit242cd76ee70d1e0b06aec6aeb0cce3108463c936 (patch)
tree2af5e155383ef000c212e55468d59d2366fdeee5 /video/out/vulkan/common.h
parent432581b60485433d5497d461730960fa3a2af402 (diff)
downloadmpv-242cd76ee70d1e0b06aec6aeb0cce3108463c936.tar.bz2
mpv-242cd76ee70d1e0b06aec6aeb0cce3108463c936.tar.xz
vo_gpu: vulkan: expose swapchain to mpvk_ctx
So I can reuse it in vo_gpu_next.
Diffstat (limited to 'video/out/vulkan/common.h')
-rw-r--r--video/out/vulkan/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vulkan/common.h b/video/out/vulkan/common.h
index b085fb462c..523de8e66e 100644
--- a/video/out/vulkan/common.h
+++ b/video/out/vulkan/common.h
@@ -32,5 +32,6 @@ struct mpvk_ctx {
const struct pl_vk_inst *vkinst;
const struct pl_vulkan *vulkan;
const struct pl_gpu *gpu; // points to vulkan->gpu for convenience
+ const struct pl_swapchain *swapchain;
VkSurfaceKHR surface;
};