public static bool SupportLocalReplay(string logfile, out string driverName) { IntPtr mem = CustomMarshal.Alloc(typeof(templated_array)); bool ret = RENDERDOC_SupportLocalReplay(logfile, mem); driverName = CustomMarshal.TemplatedArrayToUniString(mem, true); CustomMarshal.Free(mem); return(ret); }
public ResourceId BuildTargetShader(string entry, string source, UInt32 compileFlags, ShaderStageType type, out string errors) { IntPtr mem = CustomMarshal.Alloc(typeof(templated_array)); ResourceId ret = ResourceId.Null; bool success = ReplayRenderer_BuildTargetShader(m_Real, entry, source, compileFlags, type, ref ret, mem); if (!success) { ret = ResourceId.Null; } errors = CustomMarshal.TemplatedArrayToUniString(mem, true); CustomMarshal.Free(mem); return(ret); }