mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Always show UnpackedSignature for root signatures
* We want to display this even if the root signature was de-duplicated to another handle.
This commit is contained in:
@@ -940,21 +940,20 @@ bool WrappedID3D12Device::Serialise_CreateRootSignature(SerialiserType &ser, UIN
|
||||
{
|
||||
ret = new WrappedID3D12RootSignature(ret, this);
|
||||
|
||||
WrappedID3D12RootSignature *wrapped = (WrappedID3D12RootSignature *)ret;
|
||||
|
||||
wrapped->sig =
|
||||
GetShaderCache()->GetRootSig(pBlobWithRootSignature, (size_t)blobLengthInBytes);
|
||||
|
||||
{
|
||||
StructuredSerialiser structuriser(ser.GetStructuredFile().chunks.back(), &GetChunkName);
|
||||
structuriser.SetUserData(GetResourceManager());
|
||||
|
||||
structuriser.Serialise("UnpackedSignature"_lit, wrapped->sig);
|
||||
}
|
||||
|
||||
GetResourceManager()->AddLiveResource(pRootSignature, ret);
|
||||
}
|
||||
|
||||
WrappedID3D12RootSignature *wrapped = (WrappedID3D12RootSignature *)ret;
|
||||
|
||||
wrapped->sig = GetShaderCache()->GetRootSig(pBlobWithRootSignature, (size_t)blobLengthInBytes);
|
||||
|
||||
{
|
||||
StructuredSerialiser structuriser(ser.GetStructuredFile().chunks.back(), &GetChunkName);
|
||||
structuriser.SetUserData(GetResourceManager());
|
||||
|
||||
structuriser.Serialise("UnpackedSignature"_lit, wrapped->sig);
|
||||
}
|
||||
|
||||
AddResource(pRootSignature, ResourceType::ShaderBinding, "Root Signature");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user