| 1566 | } |
| 1567 | |
| 1568 | VkImageViewCreateInfo Image::BasicViewCreatInfo(VkImageAspectFlags aspect_mask) const { |
| 1569 | VkImageViewCreateInfo ci = vku::InitStructHelper(); |
| 1570 | ci.image = handle(); |
| 1571 | ci.format = Format(); |
| 1572 | ci.viewType = VK_IMAGE_VIEW_TYPE_2D; |
| 1573 | ci.components.r = VK_COMPONENT_SWIZZLE_R; |
| 1574 | ci.components.g = VK_COMPONENT_SWIZZLE_G; |
| 1575 | ci.components.b = VK_COMPONENT_SWIZZLE_B; |
| 1576 | ci.components.a = VK_COMPONENT_SWIZZLE_A; |
| 1577 | ci.subresourceRange = {aspect_mask, 0, 1, 0, 1}; |
| 1578 | return ci; |
| 1579 | } |
| 1580 | |
| 1581 | ImageView Image::CreateView(VkImageAspectFlags aspect, void* pNext) const { |
| 1582 | VkImageViewCreateInfo ci = BasicViewCreatInfo(aspect); |
no test coverage detected