EffectGraph.Native 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package EffectGraph.Native --version 1.0.0
                    
NuGet\Install-Package EffectGraph.Native -Version 1.0.0
                    
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.Native" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EffectGraph.Native" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EffectGraph.Native" />
                    
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.Native --version 1.0.0
                    
#r "nuget: EffectGraph.Native, 1.0.0"
                    
#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.Native@1.0.0
                    
#: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.Native&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=EffectGraph.Native&version=1.0.0
                    
Install as a Cake Tool

EffectGraph.Native

EffectGraph is ShaderLab's effect library and graph evaluator for any program that has a D3D11 device: HDR tone mapping, gamut mapping, statistics and analysis effects, evaluated as a graph on your device, in linear scRGB (1.0 = 80 nits).

This package is the native library: EffectGraph.dll for x64 and ARM64, its import libraries, EffectGraph.h, a header and an .effectblob per built-in effect, and EffectGraphCompile for building your own effects. For C#, use the EffectGraph package, which depends on this one.

C++

Reference the package from an x64 or ARM64 project; the include path, the import library and the copy of EffectGraph.dll beside your output are set up for you. Include the header of each built-in you use; it registers itself.

#include "EffectGraph.h"
#include "luminance_statistics.effect.h"

winrt::com_ptr<IEffectGraphContext> context;
EffectGraphCreateContext(d3dDevice, nullptr, IID_PPV_ARGS(context.put()));
winrt::com_ptr<IEffectGraphNode> input, stats;
context->CreateTextureInput(hdrTexture, EFFECTGRAPH_INPUT_ENCODING_SCRGB_LINEAR, input.put());
context->CreateEffectById(CLSID_EffectGraphLuminanceStatistics, stats.put());
stats->SetInput(0, input.get());
winrt::com_ptr<IEffectGraphValues> values;
stats->GetValues(values.put());
float peak = 0;
values->GetFloat(L"Max", &peak);

Your own effects, saved from ShaderLab's Effect Designer, are compiled at your build: add <EffectGraphEffect Include="MyEffect.json" /> to the project and include MyEffect.effect.h.

Other languages

effects/ holds every built-in as an .effectblob for EffectGraphRegisterEffect, and runtimes/win-x64/native and runtimes/win-arm64/native hold the DLL.

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

Product Compatible and additional computed target framework versions.
native native is compatible. 
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 EffectGraph.Native:

Package Downloads
EffectGraph

C# bindings for EffectGraph, ShaderLab's HDR effect library and graph evaluator for D3D11 and Direct2D programs: the COM interfaces, the C entry points, and every built-in effect embedded, registered by name. Depends on EffectGraph.Native for EffectGraph.dll (x64, ARM64).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 121 11/5/2026
1.0.2 165 10/21/2026
1.0.1 148 10/21/2026
1.0.0 162 10/18/2026