EffectGraph 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package EffectGraph --version 1.0.1
                    
NuGet\Install-Package EffectGraph -Version 1.0.1
                    
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="EffectGraph" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EffectGraph" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="EffectGraph" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EffectGraph --version 1.0.1
                    
#r "nuget: EffectGraph, 1.0.1"
                    
#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.
#:package EffectGraph@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EffectGraph&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=EffectGraph&version=1.0.1
                    
Install as a Cake Tool

EffectGraph for .NET

C# bindings for EffectGraph, ShaderLab's effect library and graph evaluator for D3D11 and Direct2D programs: HDR tone mapping, gamut mapping, statistics and analysis effects, in linear scRGB (1.0 = 80 nits). Windows, x64 and ARM64; the native EffectGraph.dll comes with the EffectGraph.Native dependency.

Direct3D and Direct2D objects cross as IntPtr (ID3D11Device*, ID3D11Texture2D*, ID2D1Image*), so the bindings work with any D3D wrapper or none.

using EffectGraph;

BuiltInEffects.Register("Luminance Statistics");      // built-ins are embedded; register what you use
var context = EffectGraphLibrary.CreateContext(d3d11Device);   // BGRA-capable ID3D11Device*
var input = context.CreateTextureInput(hdrTexture, InputEncoding.ScRgbLinear);
var stats = context.CreateEffect("Luminance Statistics");
stats.SetInput(0, input);
float peak = stats.GetValues().GetFloat("Max");        // nits

// The same values on the GPU, for your own shaders.
var buffer = stats.GetValuesBufferOrNull();
buffer!.GetView(out IntPtr shaderResourceView);

Failures arrive as COMException, with HResult one of HResults (for example HResults.EffectNotIncluded for a built-in you did not register).

Documentation: https://github.com/Spruill-1/EffectGraph/blob/main/docs/architecture/effectgraph-api.md

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 101 11/5/2026
1.0.2 113 10/21/2026
1.0.1 106 10/21/2026
1.0.0 109 10/18/2026