ComputeSharp.Dxc 3.1.0-preview1

Prefix Reserved
This is a prerelease version of ComputeSharp.Dxc.
This package has a SemVer 2.0.0 package version: 3.1.0-preview1+57f0a9b583f64f2a22978aab5afac4482fa0f94b.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ComputeSharp.Dxc --version 3.1.0-preview1
                    
NuGet\Install-Package ComputeSharp.Dxc -Version 3.1.0-preview1
                    
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="ComputeSharp.Dxc" Version="3.1.0-preview1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ComputeSharp.Dxc" Version="3.1.0-preview1" />
                    
Directory.Packages.props
<PackageReference Include="ComputeSharp.Dxc" />
                    
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 ComputeSharp.Dxc --version 3.1.0-preview1
                    
#r "nuget: ComputeSharp.Dxc, 3.1.0-preview1"
                    
#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 ComputeSharp.Dxc@3.1.0-preview1
                    
#: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=ComputeSharp.Dxc&version=3.1.0-preview1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ComputeSharp.Dxc&version=3.1.0-preview1&prerelease
                    
Install as a Cake Tool

ComputeSharp cover image

Overview 📖

ComputeSharp.Dxc is an extension library for ComputeSharp bundling the DXC compiler and enabling shader reflection.

For users that are familiar with the HLSL language and might want to access more info on a given shader generated by ComputeSharp, such as the compiled HLSL code or the statistics exposed by the DirectX 12 reflection APIs, the library includes a ReflectionServices class that allows to easily gather all these details on a given shader type.

Quick start 🚀

Assuming we have a MyShader type defined, here's how you can use ComputeSharp.Dxc to inspect it:

ShaderInfo shaderInfo = ReflectionServices.GetShaderInfo<MainKernel>();

// Access info here, for instance...
string hlslSource = shaderInfo.HlslSource;
uint numberOfResources = shaderInfo.BoundResourceCount;
uint instructionCount = shaderInfo.InstructionCount;

There's more!

For a complete list of all features available in ComputeSharp, check the documentation in the GitHub repo.

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
3.2.0 161 4/14/2025
3.1.1 90 3/15/2025
3.1.0 231 12/24/2024
3.1.0-preview2 83 10/22/2024
3.1.0-preview1 113 9/19/2024
3.0.1 306 6/18/2024
3.0.0 100 6/10/2024
3.0.0-preview2 231 12/17/2023
3.0.0-preview1 155 11/24/2023