MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / BasicViewCreatInfo

Method BasicViewCreatInfo

tests/framework/binding.cpp:1568–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1566}
1567
1568VkImageViewCreateInfo 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
1581ImageView Image::CreateView(VkImageAspectFlags aspect, void* pNext) const {
1582 VkImageViewCreateInfo ci = BasicViewCreatInfo(aspect);

Callers 15

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

FormatClass · 0.70

Tested by

no test coverage detected