diff --git a/renderdoc/driver/d3d12/d3d12_replay.cpp b/renderdoc/driver/d3d12/d3d12_replay.cpp index ed3c35806..891f99226 100644 --- a/renderdoc/driver/d3d12/d3d12_replay.cpp +++ b/renderdoc/driver/d3d12/d3d12_replay.cpp @@ -518,7 +518,7 @@ std::string D3D12Replay::DisassembleShader(ResourceId pipeline, const ShaderRefl } WrappedID3D12PipelineState *pipe = - m_pDevice->GetResourceManager()->GetLiveAs(pipeline); + m_pDevice->GetResourceManager()->GetCurrentAs(pipeline); UINT size = 0; pipe->GetPrivateData(WKPDID_CommentStringW, &size, NULL); diff --git a/renderdoc/driver/vulkan/vk_replay.cpp b/renderdoc/driver/vulkan/vk_replay.cpp index d41a0bb37..c3a81d81e 100644 --- a/renderdoc/driver/vulkan/vk_replay.cpp +++ b/renderdoc/driver/vulkan/vk_replay.cpp @@ -472,7 +472,7 @@ void VulkanReplay::CachePipelineExecutables(ResourceId pipeline) rdcarray &data = it.first->second; - VkPipeline pipe = m_pDriver->GetResourceManager()->GetLiveHandle(pipeline); + VkPipeline pipe = m_pDriver->GetResourceManager()->GetCurrentHandle(pipeline); VkPipelineInfoKHR pipeInfo = { VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR, NULL, Unwrap(pipe), @@ -566,7 +566,7 @@ std::string VulkanReplay::DisassembleShader(ResourceId pipeline, const ShaderRef "; Shader must be disassembled with a specific pipeline."; } - VkPipeline pipe = m_pDriver->GetResourceManager()->GetLiveHandle(pipeline); + VkPipeline pipe = m_pDriver->GetResourceManager()->GetCurrentHandle(pipeline); VkShaderStageFlagBits stageBit = VkShaderStageFlagBits(1 << it->second.GetReflection(refl->entryPoint, pipeline).stageIndex); diff --git a/renderdoc/replay/replay_controller.cpp b/renderdoc/replay/replay_controller.cpp index c0b9011a1..b780004eb 100644 --- a/renderdoc/replay/replay_controller.cpp +++ b/renderdoc/replay/replay_controller.cpp @@ -293,7 +293,7 @@ rdcstr ReplayController::DisassembleShader(ResourceId pipeline, const ShaderRefl if(t == target) return GCNISA::Disassemble(refl->encoding, refl->stage, refl->rawBytes, target); - return m_pDevice->DisassembleShader(pipeline, refl, target); + return m_pDevice->DisassembleShader(m_pDevice->GetLiveID(pipeline), refl, target); } FrameDescription ReplayController::GetFrameInfo()