diff --git a/doc/changes/xrt/mr.459.md b/doc/changes/xrt/mr.459.md new file mode 100644 index 000000000..09aa3f6ee --- /dev/null +++ b/doc/changes/xrt/mr.459.md @@ -0,0 +1,3 @@ +Add `XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT` flag to `xrt_swapchain_usage_bits` +so that a client can create a Vulkan swapchain that can be used as input +attachment. diff --git a/src/xrt/include/xrt/xrt_compositor.h b/src/xrt/include/xrt/xrt_compositor.h index eda7a79c2..3ee08ce4e 100644 --- a/src/xrt/include/xrt/xrt_compositor.h +++ b/src/xrt/include/xrt/xrt_compositor.h @@ -72,7 +72,8 @@ enum xrt_swapchain_usage_bits XRT_SWAPCHAIN_USAGE_TRANSFER_SRC = 0x00000008, XRT_SWAPCHAIN_USAGE_TRANSFER_DST = 0x00000010, XRT_SWAPCHAIN_USAGE_SAMPLED = 0x00000020, - XRT_SWAPCHAIN_USAGE_MUTABLE_FORMAT = 0x00000040 + XRT_SWAPCHAIN_USAGE_MUTABLE_FORMAT = 0x00000040, + XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT = 0x00000080, }; /*!