mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/main: Allow framebuffers to be transfer sources
This commit is contained in:
parent
8f792c9165
commit
43fb248271
|
@ -402,7 +402,10 @@ _init_frame_buffer(struct comp_layer_renderer *self, VkFormat format, VkRenderPa
|
|||
{
|
||||
struct vk_bundle *vk = self->vk;
|
||||
|
||||
VkImageUsageFlags usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||
VkImageUsageFlags usage = //
|
||||
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | //
|
||||
VK_IMAGE_USAGE_SAMPLED_BIT | //
|
||||
VK_IMAGE_USAGE_TRANSFER_SRC_BIT; //
|
||||
|
||||
VkResult res = vk_create_image_simple(vk, self->extent, format, usage, &self->framebuffers[eye].memory,
|
||||
&self->framebuffers[eye].image);
|
||||
|
|
Loading…
Reference in a new issue