color format fix
This commit is contained in:
parent
dd319b30c3
commit
1ff646ca01
1 changed files with 1 additions and 1 deletions
|
|
@ -876,7 +876,7 @@ void Window::CreateSwapchain()
|
||||||
VkImageViewCreateInfo colorAttachmentView = {};
|
VkImageViewCreateInfo colorAttachmentView = {};
|
||||||
colorAttachmentView.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
|
colorAttachmentView.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
|
||||||
colorAttachmentView.pNext = NULL;
|
colorAttachmentView.pNext = NULL;
|
||||||
colorAttachmentView.format = colorFormat;
|
colorAttachmentView.format = VK_FORMAT_R8G8B8A8_UNORM;
|
||||||
colorAttachmentView.components = {
|
colorAttachmentView.components = {
|
||||||
VK_COMPONENT_SWIZZLE_R,
|
VK_COMPONENT_SWIZZLE_R,
|
||||||
VK_COMPONENT_SWIZZLE_G,
|
VK_COMPONENT_SWIZZLE_G,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue