Fix image usage for screenshot#1543
Conversation
|
Afaik blit source is not mandatory for (some of) the formats we use for the swapchain. So this should only add said flag if that format flag is supported. |
|
Thanks for the comment! I agree that However, from what I understand, swapchain images include Vulkan-Samples/framework/core/swapchain.h Line 97 in 51c0943 The validation error is caused by Also, the support check is already performed when recreating the swapchain, so I think it should be reasonable for the sample code to request NOTE: As a possible follow-up improvement, it might be worth considering the requested image usage flags during swapchain format selection, instead of selecting the format first and validating the usage afterward. |
Description
I fixed an issue where taking screenshots caused a validation error because the swapchain image usage did not include
TRANSFER_SRC.General Checklist:
Please ensure the following points are checked:
Note: The Samples CI runs a number of checks including:
If this PR contains framework changes:
batchcommand line argument to make sure all samples still work properlySample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: