Expose a function to fetch the debug overlay's texture ID

This commit is contained in:
baldurk
2017-04-27 15:16:34 +01:00
parent b5e6596512
commit f415681f65
4 changed files with 29 additions and 0 deletions
+11
View File
@@ -140,6 +140,8 @@ namespace renderdoc
[DllImport("renderdoc.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
private static extern void ReplayOutput_GetCustomShaderTexID(IntPtr real, ref ResourceId texid);
[DllImport("renderdoc.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
private static extern void ReplayOutput_GetDebugOverlayTexID(IntPtr real, ref ResourceId texid);
[DllImport("renderdoc.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
private static extern void ReplayOutput_GetMinMax(IntPtr real, IntPtr outminval, IntPtr outmaxval);
@@ -203,6 +205,15 @@ namespace renderdoc
return ret;
}
public ResourceId GetDebugOverlayTexID()
{
ResourceId ret = ResourceId.Null;
ReplayOutput_GetDebugOverlayTexID(m_Real, ref ret);
return ret;
}
public void GetMinMax(out PixelValue minval, out PixelValue maxval)
{
IntPtr mem1 = CustomMarshal.Alloc(typeof(PixelValue));