mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-04 21:56:36 +00:00
vk: Add support for XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT
This commit is contained in:
parent
b64d683f6e
commit
ce7da3941c
src/xrt/auxiliary/vk
|
@ -296,6 +296,9 @@ vk_create_image_from_native(struct vk_bundle *vk,
|
||||||
if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) {
|
if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) {
|
||||||
image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
|
image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||||
}
|
}
|
||||||
|
if ((info->bits & XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT) != 0) {
|
||||||
|
image_usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
||||||
|
}
|
||||||
|
|
||||||
VkImageCreateInfo vk_info = {
|
VkImageCreateInfo vk_info = {
|
||||||
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
||||||
|
|
|
@ -87,6 +87,9 @@ create_image(struct vk_bundle *vk,
|
||||||
if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) {
|
if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) {
|
||||||
image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
|
image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||||
}
|
}
|
||||||
|
if ((info->bits & XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT) != 0) {
|
||||||
|
image_usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
||||||
|
}
|
||||||
|
|
||||||
VkImageCreateInfo create_info = {
|
VkImageCreateInfo create_info = {
|
||||||
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
||||||
|
|
Loading…
Reference in a new issue