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 authored and Baldur Karlsson committed 2019-03-02 08:24:12 +00:00
1 parent 8903c8c1fa
commit f39ae770e4
1 file changed
+1 -1
+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");
}