Fix Descriptor FrameRefType.

Storage resources can be read and/or written by the shader. We must
pessimistically assume that the shade reads, and then modifies these resources.
This commit is contained in:
Benson Joeris
2019-02-28 09:50:55 -05:00
committed by Baldur Karlsson
parent 8903c8c1fa
commit f39ae770e4
+1 -1
View File
@@ -787,7 +787,7 @@ FrameRefType GetRefType(VkDescriptorType descType)
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
case VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER:
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER:
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: return eFrameRef_PartialWrite; break;
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: return eFrameRef_ReadBeforeWrite; break;
default: RDCERR("Unexpected descriptor type");
}