This repository contains low-level bindings for RenderDoc used in Evergine for .NET 8.0. This binding is auto-generated from renderdoc api header: https://github.com/baldurk/renderdoc/blob/v1.x/renderdoc/api/app/renderdoc_app.h
Official documentation: https://renderdoc.org/docs/in_application_api.html
- RenderDoc 1.4.1
- Raw low level binding using unsafe c# code
Create a C# project and open the NuGet package manager, select the Browse tab, search for Evergine.Bindings.RenderDoc and install the package.
dotnet add package Evergine.Bindings.RenderDoc
- Make sure RenderDoc is installed on your system.
- Include the
Evergine.Bindings.RenderDoc
namespace in your code:using Evergine.Bindings.RenderDoc;
- Load RenderDoc into your C# application before any rendering code happen, as early as possible:
RenderDoc.Load(out RenderDoc renderDoc);
- If you have a window based application you will get a RenderDoc overlay on the top left corner of your window. You can take a RenderDoc screenshot by pressing F12 or PrtScrn.
- Or if you do not have a window based application you can capture a frame by calling:
renderDoc.API.StartFrameCapture(IntPtr device, IntPtr wndHandle); ... graphics code ... renderDoc.API.EndFrameCapture(IntPtr device, IntPtr wndHandle);
- A RenderDoc capture file will be created in the default directory:
C:\Users\{user}\AppData\Local\Temp\RenderDoc
. You can double click that file and it will open in RenderDoc.