From 94c9c8a253c0f66c85792c19d253ac681ce70a7a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 7 Apr 2023 19:10:17 +0100 Subject: [PATCH] xrt: Allow compositor to request extra usage bits Some compositors might need extra usage bits set beyond just the constant sampled bit, make it all generic and extend the xrt interface to allow it. --- src/xrt/include/xrt/xrt_compositor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xrt/include/xrt/xrt_compositor.h b/src/xrt/include/xrt/xrt_compositor.h index c5978a3af..e59cfdfc9 100644 --- a/src/xrt/include/xrt/xrt_compositor.h +++ b/src/xrt/include/xrt/xrt_compositor.h @@ -755,6 +755,9 @@ struct xrt_swapchain_create_properties { //! How many images the compositor want in the swapchain. uint32_t image_count; + + //! New creation bits. + enum xrt_swapchain_usage_bits extra_bits; }; /*!