namespace Brutal.RenderDocApi; /// API version changelog: /// 1.0.0 - initial release /// 1.0.1 - Bugfix: IsFrameCapturing() was returning false for captures that were triggered /// by keypress or TriggerCapture, instead of Start/EndFrameCapture. /// 1.0.2 - Refactor: Renamed eRENDERDOC_Option_DebugDeviceMode to eRENDERDOC_Option_APIValidation /// 1.1.0 - Add feature: TriggerMultiFrameCapture(). Backwards compatible with 1.0.x since the new /// function pointer is added to the end of the struct, the original layout is identical /// 1.1.1 - Refactor: Renamed remote access to target control (to better disambiguate from remote /// replay/remote server concept in replay UI) /// 1.1.2 - Refactor: Renamed "log file" in function names to just capture, to clarify that these /// are captures and not debug logging files. This is the first API version in the v1.0 /// branch. /// 1.2.0 - Added feature: SetCaptureFileComments() to add comments to a capture file that will be /// displayed in the UI program on load. /// 1.3.0 - Added feature: New capture option eRENDERDOC_Option_AllowUnsupportedVendorExtensions /// which allows users to opt-in to allowing unsupported vendor extensions to function. /// Should be used at the user's own risk. /// Refactor: Renamed eRENDERDOC_Option_VerifyMapWrites to /// eRENDERDOC_Option_VerifyBufferAccess, which now also controls initialisation to /// 0xdddddddd of uninitialised buffer contents. /// 1.4.0 - Added feature: DiscardFrameCapture() to discard a frame capture in progress and stop /// capturing without saving anything to disk. /// 1.4.1 - Refactor: Renamed Shutdown to RemoveHooks to better clarify what is happening /// 1.4.2 - Refactor: Renamed 'draws' to 'actions' in callstack capture option. /// 1.5.0 - Added feature: ShowReplayUI() to request that the replay UI show itself if connected /// 1.6.0 - Added feature: SetCaptureTitle() which can be used to set a title for a /// capture made with StartFrameCapture() or EndFrameCapture() [StructLayout(LayoutKind.Explicit, Size = 216)] public unsafe partial struct RenderDocApi() { /// [FieldOffset(0)] public delegate* unmanaged[Cdecl] GetAPIVersion; /// [FieldOffset(8)] public delegate* unmanaged[Cdecl] SetCaptureOptionU32; /// [FieldOffset(16)] public delegate* unmanaged[Cdecl] SetCaptureOptionF32; /// [FieldOffset(24)] public delegate* unmanaged[Cdecl] GetCaptureOptionU32; /// [FieldOffset(32)] public delegate* unmanaged[Cdecl] GetCaptureOptionF32; /// [FieldOffset(40)] public delegate* unmanaged[Cdecl] SetFocusToggleKeys; /// [FieldOffset(48)] public delegate* unmanaged[Cdecl] SetCaptureKeys; /// [FieldOffset(56)] public delegate* unmanaged[Cdecl] GetOverlayBits; /// [FieldOffset(64)] public delegate* unmanaged[Cdecl] MaskOverlayBits; /// [FieldOffset(72)] public delegate* unmanaged[Cdecl] RemoveHooks; /// [FieldOffset(80)] public delegate* unmanaged[Cdecl] UnloadCrashHandler; /// current name [FieldOffset(88)] public delegate* unmanaged[Cdecl] SetCaptureFilePathTemplate; /// current name [FieldOffset(96)] public delegate* unmanaged[Cdecl] GetCaptureFilePathTemplate; /// [FieldOffset(104)] public delegate* unmanaged[Cdecl] GetNumCaptures; /// [FieldOffset(112)] public delegate* unmanaged[Cdecl] GetCapture; /// [FieldOffset(120)] public delegate* unmanaged[Cdecl] TriggerCapture; /// current name [FieldOffset(128)] public delegate* unmanaged[Cdecl] IsTargetControlConnected; /// [FieldOffset(136)] public delegate* unmanaged[Cdecl] LaunchReplayUI; /// [FieldOffset(144)] public delegate* unmanaged[Cdecl] SetActiveWindow; /// [FieldOffset(152)] public delegate* unmanaged[Cdecl] StartFrameCapture; /// [FieldOffset(160)] public delegate* unmanaged[Cdecl] IsFrameCapturing; /// [FieldOffset(168)] public delegate* unmanaged[Cdecl] EndFrameCapture; /// new function in 1.1.0 [FieldOffset(176)] public delegate* unmanaged[Cdecl] TriggerMultiFrameCapture; /// new function in 1.2.0 [FieldOffset(184)] public delegate* unmanaged[Cdecl] SetCaptureFileComments; /// new function in 1.4.0 [FieldOffset(192)] public delegate* unmanaged[Cdecl] DiscardFrameCapture; /// new function in 1.5.0 [FieldOffset(200)] public delegate* unmanaged[Cdecl] ShowReplayUI; /// new function in 1.6.0 [FieldOffset(208)] public delegate* unmanaged[Cdecl] SetCaptureTitle; }