SharpNRI 1.0.0-beta.2

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

SharpNRI

C# bindings for NRI, the NVIDIA Render Interface: one low-level API over Vulkan and D3D12. NRI is explicit, with no hidden management and no automatic barriers, and SharpNRI keeps it that way: NRI's objects become disposable classes, its descs are structs with NRI's field names, and its threading rules are documented rather than hidden.

An independent project, not affiliated with NVIDIA. MIT licensed. Beta: the API may still change between releases. Each release pins one NRI release.

using SharpNRI;
using SharpNRI.Native;

using var device = NriDevice.Create(new NriDeviceOptions
{
    GraphicsApi = GraphicsAPI.D3D12,          // or VK, or NONE
    EnableNriValidation = true,
    EnableGraphicsApiValidation = true,
    MessageHandler = (in NriMessage m) => Console.Error.WriteLine(m),
});
var queue = device.GetQueue(QueueType.GRAPHICS);
Package What it is
SharpNRI the binding and the native NRI library (Windows x64, Linux x64)
SharpNRI.Descs every NRI enum and desc struct, with no native code
SharpNRI.Testing a validated headless device per backend, for your own GPU tests
SharpNRI.Native.Upscalers NRI built with NIS, FSR and XeSS, replacing the library in SharpNRI: reference it with ExcludeAssets="native" on SharpNRI

No package ships a vendor upscaler runtime or Microsoft's Agility SDK. The guide covers how an application adds them, and everything else: device creation, resources, descriptors, recording and submitting, every extension, and the caveats.

Windows x64 (D3D12, Vulkan; needs the Visual C++ 2015-2022 runtime), Linux x64 (Vulkan; needs the Vulkan loader). .NET 11.

Repository · Releases · Third-party notices

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SharpNRI:

Package Downloads
SharpNRI.Testing

A headless, validated NRI device for tests: Vulkan, D3D12 or NRI's NONE backend with NRI validation and the backend validation layer on, messages captured, software adapters under CI, and skip reasons when a backend is absent. For projects that build on SharpNRI.

SharpNRI.Native.Upscalers

NRI native library for SharpNRI with the NIS, FSR and XeSS upscalers compiled in. Replaces the NRI library of the SharpNRI package, which it depends on at the same version: reference this package alone. Vendor runtimes (FidelityFX, XeSS) are not included: the application ships them.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
192.0.0-beta.1 68 11/12/2026
191.0.0-beta.4 189 11/7/2026
1.0.0-beta.3 72 11/7/2026
1.0.0-beta.2 74 11/7/2026