mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: Use xrt limits for number of collection images max
This commit is contained in:
parent
04ab47ef3b
commit
a41ccb0467
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020, Collabora, Ltd.
|
||||
// Copyright 2020-2022, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
|
@ -9,6 +9,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "xrt/xrt_limits.h"
|
||||
#include "xrt/xrt_config_os.h"
|
||||
#include "xrt/xrt_vulkan_includes.h"
|
||||
#include "vk/vk_helpers.h"
|
||||
|
@ -35,7 +36,11 @@ struct vk_image_collection
|
|||
{
|
||||
struct xrt_swapchain_create_info info;
|
||||
|
||||
struct vk_image images[8];
|
||||
/*!
|
||||
* Limit set to same as max swapchain images because
|
||||
* this struct is mostly used to back swapchains.
|
||||
*/
|
||||
struct vk_image images[XRT_MAX_SWAPCHAIN_IMAGES];
|
||||
|
||||
uint32_t image_count;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue