mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-06 05:53:08 +00:00
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:
1 parent
8903c8c1fa
commit
f39ae770e4
1 file changed
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user