EffectGraph 1.0.1
See the version list below for details.
dotnet add package EffectGraph --version 1.0.1
NuGet\Install-Package EffectGraph -Version 1.0.1
<PackageReference Include="EffectGraph" Version="1.0.1" />
<PackageVersion Include="EffectGraph" Version="1.0.1" />
<PackageReference Include="EffectGraph" />
paket add EffectGraph --version 1.0.1
#r "nuget: EffectGraph, 1.0.1"
#:package EffectGraph@1.0.1
#addin nuget:?package=EffectGraph&version=1.0.1
#tool nuget:?package=EffectGraph&version=1.0.1
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 | Versions 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. |
-
net8.0
- EffectGraph.Native (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.