There is a newer version of this package available.
See the version list below for details.
dotnet add package RenderSpy --version
NuGet\Install-Package RenderSpy -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RenderSpy" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RenderSpy --version
#r "nuget: RenderSpy,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RenderSpy as a Cake Addin
#addin nuget:?package=RenderSpy&version=

// Install RenderSpy as a Cake Tool
#tool nuget:?package=RenderSpy&version=

Universal graphical and input hook for a D3D9-D3D12, OpenGL and Vulkan based games. 💠 Please leave a Star to the repository ✅ if you liked it. ✨



Sample Description
Universal.FPS.Counter A Universal FPS Counter for games
RenderSpy.Imgui Easily use imgui in your favorite game
d3d11 SpriteText Render Create a window with sharDX and render text in directx 11 using SpriteTextRenderer


Note: The objectives of the list that have: [❌] - It means I have no idea how to solve it.

It includes all the libraries you need to draw, RenderSpy after compilation joins all the dependencies using ILMerge which means it appears to offer hooks, it also offers all the libraries you need to draw your overlay.

  • OpenGL.Net
  • SharpDX and its Wrappers [SharpDX.Direct3D9 - SharpDX.Direct3D10 - SharpDX.Direct3D11 ... and more!!]
  • MinHook.NET [For your custom hooks.]

RenderSpy when incorporating these libraries has a weight of approximately 5mb, but if you use Costura.Fody in your assembly the weight is considerably reduced to approximately 1mb.



API Support
Vulkan ❌ I don't know how to hook it


  • DirectInputHook ✨
  • GetRawInputData
  • DefWindowProc
  • GetWindowLongPtr
  • SetWindowLongPtr
  • SetCursorPos



    RenderSpy.Graphics.GraphicsType GraphicsT = RenderSpy.Graphics.Detector.GetCurrentGraphicsType();

            RenderSpy.Interfaces.IHook CurrentHook = null;

            switch (GraphicsT)
                case RenderSpy.Graphics.GraphicsType.d3d9:

                    Graphics.d3d9.Present PresentHook_9 = new Graphics.d3d9.Present();
                    CurrentHook = PresentHook_9;

                    PresentHook_9.PresentEvent += (IntPtr device, IntPtr sourceRect, IntPtr destRect, IntPtr hDestWindowOverride, IntPtr dirtyRegion) =>
                        // You Custom Code.
                        return PresentHook_9.Present_orig(device, sourceRect, destRect, hDestWindowOverride, dirtyRegion);

                case RenderSpy.Graphics.GraphicsType.d3d10:

                    Graphics.d3d10.Present PresentHook_10 = new Graphics.d3d10.Present();
                    CurrentHook = PresentHook_10;

                    PresentHook_10.PresentEvent += (swapChainPtr, syncInterval, flags) =>
                        // You Custom Code.
                        return PresentHook_10.Present_orig(swapChainPtr, syncInterval, flags);

                case RenderSpy.Graphics.GraphicsType.d3d11:

                    Graphics.d3d11.Present PresentHook_11 = new Graphics.d3d11.Present();
                    CurrentHook = PresentHook_11;

                    PresentHook_11.PresentEvent += (swapChainPtr, syncInterval, flags) =>
                        // You Custom Code.
                        return PresentHook_11.Present_orig(swapChainPtr, syncInterval, flags);

                case RenderSpy.Graphics.GraphicsType.d3d12:

                case RenderSpy.Graphics.GraphicsType.opengl:

                    Graphics.opengl.wglSwapBuffers glSwapBuffersHook = new Graphics.opengl.wglSwapBuffers();
                    CurrentHook = glSwapBuffersHook;

                    glSwapBuffersHook.wglSwapBuffersEvent += (IntPtr hdc) =>
                        // You Custom Code.
                        return glSwapBuffersHook.wglSwapBuffers_orig(hdc); ;

                case RenderSpy.Graphics.GraphicsType.vulkan:



      // ... you more code

      // Terminate.... runtines.
      // Destroy Hook
      // CurrentHook.Uninstall();

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RenderSpy:

Package Downloads

Use ImGui with Winforms / .NET Framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.2 54 4/14/2024 140 1/19/2024
1.6.7 88 1/15/2024
1.6.5 89 1/14/2024
1.6.4 88 1/12/2024 92 1/10/2024