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

Method RecordCopyImage2

layers/best_practices/bp_state.cpp:412–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {
414 for (uint32_t i = 0; i < region_count; i++) {
415 validator.QueueValidateImage(queue_submit_functions, loc, src_image_state, IMAGE_SUBRESOURCE_USAGE_BP::COPY_READ,
416 regions[i].srcSubresource);
417 validator.QueueValidateImage(queue_submit_functions, loc, dst_image_state, IMAGE_SUBRESOURCE_USAGE_BP::COPY_WRITE,
418 regions[i].dstSubresource);
419 }
420}
421
422void CommandBufferSubState::RecordCopyBufferToImage(vvl::Buffer&, vvl::Image& dst_image_state, VkImageLayout, uint32_t region_count,
423 const VkBufferImageCopy* regions, const Location& loc) {

Callers

nothing calls this directly

Calls 1

QueueValidateImageMethod · 0.80

Tested by

no test coverage detected