mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 05:35:48 +00:00
Expose a function to fetch the debug overlay's texture ID
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user