mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +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:
committed by
Baldur Karlsson
parent
8903c8c1fa
commit
f39ae770e4
@@ -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