Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 2.38 KB

README.md

File metadata and controls

51 lines (42 loc) · 2.38 KB

RenderDoc.NET

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

CI CD Nuget

Features

  • RenderDoc 1.4.1
  • Raw low level binding using unsafe c# code

Installation

Visual Studio

NuGet Package Manager

Create a C# project and open the NuGet package manager, select the Browse tab, search for Evergine.Bindings.RenderDoc and install the package.

Or via the Package Manager Console

dotnet add package Evergine.Bindings.RenderDoc

Usage

  • 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. alt Capture0
  • 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.

Test Images

alt Capture1 alt Capture0

Related Work