Skip to content

Instantly share code, notes, and snippets.

@jherico
Created June 3, 2016 18:58
Show Gist options
  • Save jherico/375e5246cbdc45485f839979c53f9429 to your computer and use it in GitHub Desktop.
Save jherico/375e5246cbdc45485f839979c53f9429 to your computer and use it in GitHub Desktop.
vk::ImageViewCreateInfo colorAttachmentView;
colorAttachmentView.format = colorFormat;
colorAttachmentView.subresourceRange.aspectMask = vk::ImageAspectFlagBits::eColor;
colorAttachmentView.subresourceRange.levelCount = 1;
colorAttachmentView.subresourceRange.layerCount = 1;
colorAttachmentView.viewType = vk::ImageViewType::e2D;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment