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

Method RecordCopyImage

layers/best_practices/bp_state.cpp:402–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void CommandBufferSubState::RecordCopyImage(vvl::Image& src_image_state, vvl::Image& dst_image_state, VkImageLayout, VkImageLayout,
403 uint32_t region_count, const VkImageCopy* regions, const Location& loc) {
404 for (uint32_t i = 0; i < region_count; i++) {
405 validator.QueueValidateImage(queue_submit_functions, loc, src_image_state, IMAGE_SUBRESOURCE_USAGE_BP::COPY_READ,
406 regions[i].srcSubresource);
407 validator.QueueValidateImage(queue_submit_functions, loc, dst_image_state, IMAGE_SUBRESOURCE_USAGE_BP::COPY_WRITE,
408 regions[i].dstSubresource);
409 }
410}
411
412void CommandBufferSubState::RecordCopyImage2(vvl::Image& src_image_state, vvl::Image& dst_image_state, VkImageLayout, VkImageLayout,
413 uint32_t region_count, const VkImageCopy2* regions, const Location& loc) {

Callers

nothing calls this directly

Calls 1

QueueValidateImageMethod · 0.80

Tested by

no test coverage detected