From 0eea63c2381cd9bca139a2cd65dc1451d2ddcb34 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 3 Nov 2020 18:32:55 +0000 Subject: [PATCH] Always show UnpackedSignature for root signatures * We want to display this even if the root signature was de-duplicated to another handle. --- renderdoc/driver/d3d12/d3d12_device_wrap.cpp | 23 ++++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/renderdoc/driver/d3d12/d3d12_device_wrap.cpp b/renderdoc/driver/d3d12/d3d12_device_wrap.cpp index 94f2ab8cf..0cbe19188 100644 --- a/renderdoc/driver/d3d12/d3d12_device_wrap.cpp +++ b/renderdoc/driver/d3d12/d3d12_device_wrap.cpp @@ -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"); } }