mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Fetch compute shader tex resources if it's a compute drawcall
This commit is contained in:
@@ -800,10 +800,27 @@ namespace renderdocui.Windows
|
||||
|
||||
ResourceId[] RTs = m_Core.CurPipelineState.GetOutputTargets();
|
||||
ResourceId Depth = m_Core.CurPipelineState.OutputDepth;
|
||||
ResourceId[] Texs = m_Core.CurPipelineState.GetResources(ShaderStageType.Pixel);
|
||||
ResourceId[] Texs = null;
|
||||
|
||||
ShaderReflection details = m_Core.CurPipelineState.GetShaderReflection(ShaderStageType.Pixel);
|
||||
ShaderBindpointMapping mapping = m_Core.CurPipelineState.GetBindpointMapping(ShaderStageType.Pixel);
|
||||
ShaderReflection details = null;
|
||||
ShaderBindpointMapping mapping = null;
|
||||
|
||||
var curDraw = m_Core.GetDrawcall(frameID, eventID);
|
||||
|
||||
if (curDraw != null && (curDraw.flags & DrawcallFlags.Dispatch) != 0 &&
|
||||
m_Core.CurPipelineState.GetShader(ShaderStageType.Compute) != ResourceId.Null)
|
||||
{
|
||||
Texs = m_Core.CurPipelineState.GetResources(ShaderStageType.Compute);
|
||||
details = m_Core.CurPipelineState.GetShaderReflection(ShaderStageType.Compute);
|
||||
mapping = m_Core.CurPipelineState.GetBindpointMapping(ShaderStageType.Compute);
|
||||
}
|
||||
|
||||
if (details == null)
|
||||
{
|
||||
Texs = m_Core.CurPipelineState.GetResources(ShaderStageType.Pixel);
|
||||
details = m_Core.CurPipelineState.GetShaderReflection(ShaderStageType.Pixel);
|
||||
mapping = m_Core.CurPipelineState.GetBindpointMapping(ShaderStageType.Pixel);
|
||||
}
|
||||
|
||||
uint firstuav = uint.MaxValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user