mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
xrt: Add all remaining swapchain creation flags
This commit is contained in:
parent
080fdacc70
commit
9ae720b9d4
|
@ -55,6 +55,9 @@ typedef uint64_t VkDeviceMemory;
|
|||
*/
|
||||
enum xrt_swapchain_create_flags
|
||||
{
|
||||
//! Our compositor just ignores this bit.
|
||||
XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT = (1 << 0),
|
||||
//! Signals that the allocator should only allocate one image.
|
||||
XRT_SWAPCHAIN_CREATE_STATIC_IMAGE = (1 << 1),
|
||||
};
|
||||
|
||||
|
|
|
@ -155,6 +155,10 @@ static enum xrt_swapchain_create_flags
|
|||
convert_create_flags(XrSwapchainCreateFlags xr_flags)
|
||||
{
|
||||
enum xrt_swapchain_create_flags flags = 0;
|
||||
|
||||
if ((xr_flags & XR_SWAPCHAIN_CREATE_PROTECTED_CONTENT_BIT) != 0) {
|
||||
flags |= XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT;
|
||||
}
|
||||
if ((xr_flags & XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT) != 0) {
|
||||
flags |= XRT_SWAPCHAIN_CREATE_STATIC_IMAGE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue