color format fix
This commit is contained in:
parent
1ff646ca01
commit
486775925b
1 changed files with 1 additions and 1 deletions
|
|
@ -889,7 +889,7 @@ void Window::CreateSwapchain()
|
|||
colorAttachmentView.subresourceRange.baseArrayLayer = 0;
|
||||
colorAttachmentView.subresourceRange.layerCount = 1;
|
||||
colorAttachmentView.viewType = VK_IMAGE_VIEW_TYPE_2D;
|
||||
colorAttachmentView.flags = 0;
|
||||
colorAttachmentView.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
|
||||
colorAttachmentView.image = images[i];
|
||||
Device::CheckVkResult(vkCreateImageView(Device::device, &colorAttachmentView, nullptr, &imageViews[i]));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue