class ImageLayoutUpdaterTest_SetLayout_Test
Defined at line 57 of file ../../src/ui/lib/escher/test/vk/image_layout_updater_unittest.cc
The following test checks if ImageLayoutUpdater works correctly:
(1) Create an image with layout ImageLayout::eUndefined.
(2) Convert this image to layout ImageLayout::eTransferSrcOptimal.
(3) Copy this image to a Vulkan buffer.
Vulkan validation layer will generate the following validation error if layout is not updated
correctly:
[ UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout ] Submitted command buffer expects
VkImage to be in layout VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL -- instead, current layout is
VK_IMAGE_LAYOUT_UNDEFINED.
If ImageLayoutUpdater works correctly, there should be no Vulkan validation debug reports.
Public Methods
void ImageLayoutUpdaterTest_SetLayout_Test ()
Defined at line 57 of file ../../src/ui/lib/escher/test/vk/image_layout_updater_unittest.cc
void ImageLayoutUpdaterTest_SetLayout_Test (const ImageLayoutUpdaterTest_SetLayout_Test & )
Defined at line 57 of file ../../src/ui/lib/escher/test/vk/image_layout_updater_unittest.cc
ImageLayoutUpdaterTest_SetLayout_Test & operator= (const ImageLayoutUpdaterTest_SetLayout_Test & )
Defined at line 57 of file ../../src/ui/lib/escher/test/vk/image_layout_updater_unittest.cc