1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[vulkan] Add feedback loop layout to getWritableAspectsForLayout

This commit is contained in:
Joshua Ashton 2022-08-05 23:12:46 +00:00 committed by Joshie
parent 3c4e85d630
commit 9cf5c648d3

View File

@ -90,6 +90,7 @@ namespace dxvk::vk {
inline VkImageAspectFlags getWritableAspectsForLayout(VkImageLayout layout) {
switch (layout) {
case VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT:
case VK_IMAGE_LAYOUT_GENERAL:
return VK_IMAGE_ASPECT_COLOR_BIT | VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT;
case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL: