xrt: Add new input attachment swapchain usage

This commit is contained in:
Jakob Bornecrantz 2020-07-23 14:42:30 +01:00 committed by Jakob Bornecrantz
parent ae07036324
commit b64d683f6e
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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,
};
/*!