mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Refactor RenderMesh() to now purely render what's specified
* So RenderMesh doesn't pick up anything implicitly from the current event, log, pipeline state etc - everything it needs is explicitly provided by the config parameters (note this might include a buffer generated by postvs data fetching, but the implementation now doesn't need to care or treat it as a special case.
This commit is contained in:
@@ -519,6 +519,32 @@ namespace renderdocui.Code
|
||||
return null;
|
||||
}
|
||||
|
||||
public ResourceId GetDepthTarget()
|
||||
{
|
||||
if (LogLoaded)
|
||||
{
|
||||
if (IsLogD3D11)
|
||||
return m_D3D11.m_OM.DepthTarget.Resource;
|
||||
else if (IsLogGL)
|
||||
return m_GL.m_FB.m_DrawFBO.Depth;
|
||||
}
|
||||
|
||||
return ResourceId.Null;
|
||||
}
|
||||
|
||||
public ResourceId GetStencilTarget()
|
||||
{
|
||||
if (LogLoaded)
|
||||
{
|
||||
if (IsLogD3D11)
|
||||
return m_D3D11.m_OM.DepthTarget.Resource;
|
||||
else if (IsLogGL)
|
||||
return m_GL.m_FB.m_DrawFBO.Stencil;
|
||||
}
|
||||
|
||||
return ResourceId.Null;
|
||||
}
|
||||
|
||||
public ResourceId[] GetOutputTargets()
|
||||
{
|
||||
if (LogLoaded)
|
||||
|
||||
Reference in New Issue
Block a user