ComputeSharp.Dxc 3.0.0-preview2

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of ComputeSharp.Dxc.
This package has a SemVer 2.0.0 package version: 3.0.0-preview2+2f6ab50b9ef0bd2d24c4370165d4144793a68c62.
dotnet add package ComputeSharp.Dxc --version 3.0.0-preview2
NuGet\Install-Package ComputeSharp.Dxc -Version 3.0.0-preview2
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.0.0-preview2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ComputeSharp.Dxc --version 3.0.0-preview2
#r "nuget: ComputeSharp.Dxc, 3.0.0-preview2"
#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.
// Install ComputeSharp.Dxc as a Cake Addin
#addin nuget:?package=ComputeSharp.Dxc&version=3.0.0-preview2&prerelease

// Install ComputeSharp.Dxc as a Cake Tool
#tool nuget:?package=ComputeSharp.Dxc&version=3.0.0-preview2&prerelease

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. 
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 (1)

Showing the top 1 popular GitHub repositories that depend on ComputeSharp.Dxc:

Repository Stars
Sergio0694/ComputeSharp
A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀
Version Downloads Last updated
3.0.0-preview2 169 12/17/2023
3.0.0-preview1 111 11/24/2023