mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
For D3D11 use the view's format not the resource's, for typeless formats
This commit is contained in:
@@ -313,6 +313,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
// if it's a typeless format, show the format of the view
|
||||
if (texs[t].format.compType == FormatComponentType.None)
|
||||
{
|
||||
format = r.Format.ToString();
|
||||
}
|
||||
|
||||
tag = texs[t];
|
||||
}
|
||||
}
|
||||
@@ -1014,6 +1020,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
// if it's a typeless format, show the format of the view
|
||||
if (texs[t].format.compType == FormatComponentType.None)
|
||||
{
|
||||
format = r.Format.ToString();
|
||||
}
|
||||
|
||||
tag = texs[t];
|
||||
}
|
||||
}
|
||||
@@ -1265,6 +1277,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
// if it's a typeless format, show the format of the view
|
||||
if (texs[t].format.compType == FormatComponentType.None)
|
||||
{
|
||||
format = p.Format.ToString();
|
||||
}
|
||||
|
||||
tag = texs[t];
|
||||
}
|
||||
}
|
||||
@@ -1345,6 +1363,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
// if it's a typeless format, show the format of the view
|
||||
if (texs[t].format.compType == FormatComponentType.None)
|
||||
{
|
||||
format = r.Format.ToString();
|
||||
}
|
||||
|
||||
tag = texs[t];
|
||||
}
|
||||
}
|
||||
@@ -1437,6 +1461,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
// if it's a typeless format, show the format of the view
|
||||
if (texs[t].format.compType == FormatComponentType.None)
|
||||
{
|
||||
format = state.m_OM.DepthTarget.Format.ToString();
|
||||
}
|
||||
|
||||
tag = texs[t];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user