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

Method TransitionLayout

tests/framework/binding.cpp:1556–1566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554void Image::SetLayout(VkImageLayout image_layout) { TransitionLayout(create_info_.initialLayout, image_layout); }
1555
1556void Image::TransitionLayout(VkImageLayout old_layout, VkImageLayout new_layout) {
1557 CommandPool pool(*device_, device_->graphics_queue_node_index_);
1558 CommandBuffer cmd_buf(*device_, pool);
1559
1560 cmd_buf.Begin(VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
1561 cmd_buf.TransitionLayout(*this, old_layout, new_layout);
1562 cmd_buf.End();
1563
1564 auto graphics_queue = device_->QueuesWithGraphicsCapability()[0];
1565 graphics_queue->SubmitAndWait(cmd_buf);
1566}
1567
1568VkImageViewCreateInfo Image::BasicViewCreatInfo(VkImageAspectFlags aspect_mask) const {
1569 VkImageViewCreateInfo ci = vku::InitStructHelper();

Callers 15

SetLayoutMethod · 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 7

CmdPipelineBarrierFunction · 0.85
SubmitAndWaitMethod · 0.80
SubresourceRangeMethod · 0.80
BeginMethod · 0.45
EndMethod · 0.45
AspectMaskMethod · 0.45
FormatMethod · 0.45

Tested by

no test coverage detected