mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Fix wrong indexing building reflection data
This commit is contained in:
@@ -312,13 +312,13 @@ void MakeShaderReflection(DXBC::DXBCFile *dxbc, ShaderReflection *refl,
|
||||
|
||||
if(IsReadWrite)
|
||||
{
|
||||
mapping->ReadWriteResources[rwidx] = map;
|
||||
refl->ReadWriteResources[rwidx++] = res;
|
||||
mapping->ReadWriteResources[i] = map;
|
||||
}
|
||||
else
|
||||
{
|
||||
mapping->ReadOnlyResources[roidx] = map;
|
||||
refl->ReadOnlyResources[roidx++] = res;
|
||||
mapping->ReadOnlyResources[i] = map;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user