ComputeSharp.Dxc 3.0.0-preview1

Prefix Reserved
This is a prerelease version of ComputeSharp.Dxc.
This package has a SemVer 2.0.0 package version: 3.0.0-preview1+87e7b01f7ca90761e7d32872eda7c155a93524bd.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ComputeSharp.Dxc --version 3.0.0-preview1                
NuGet\Install-Package ComputeSharp.Dxc -Version 3.0.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.0.0-preview1" />                
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-preview1                
#r "nuget: ComputeSharp.Dxc, 3.0.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.
// Install ComputeSharp.Dxc as a Cake Addin
#addin nuget:?package=ComputeSharp.Dxc&version=3.0.0-preview1&prerelease

// Install ComputeSharp.Dxc as a Cake Tool
#tool nuget:?package=ComputeSharp.Dxc&version=3.0.0-preview1&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.1.0-preview2 37 10/22/2024
3.1.0-preview1 74 9/19/2024
3.0.1 170 6/18/2024
3.0.0 55 6/10/2024
3.0.0-preview2 204 12/17/2023
3.0.0-preview1 126 11/24/2023