summaryrefslogtreecommitdiffstats
path: root/video/out/d3d11/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/d3d11/context.h')
-rw-r--r--video/out/d3d11/context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/d3d11/context.h b/video/out/d3d11/context.h
new file mode 100644
index 0000000..8a9ef4c
--- /dev/null
+++ b/video/out/d3d11/context.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include <dxgi.h>
+
+#include "video/out/gpu/context.h"
+
+// Get the underlying D3D11 swap chain from an RA context. The returned swap chain is
+// refcounted and must be released by the caller.
+IDXGISwapChain *ra_d3d11_ctx_get_swapchain(struct ra_ctx *ra);