ComputeSharp.Dxc
3.1.0-preview2
Prefix Reserved
dotnet add package ComputeSharp.Dxc --version 3.1.0-preview2
NuGet\Install-Package ComputeSharp.Dxc -Version 3.1.0-preview2
<PackageReference Include="ComputeSharp.Dxc" Version="3.1.0-preview2" />
paket add ComputeSharp.Dxc --version 3.1.0-preview2
#r "nuget: ComputeSharp.Dxc, 3.1.0-preview2"
// Install ComputeSharp.Dxc as a Cake Addin #addin nuget:?package=ComputeSharp.Dxc&version=3.1.0-preview2&prerelease // Install ComputeSharp.Dxc as a Cake Tool #tool nuget:?package=ComputeSharp.Dxc&version=3.1.0-preview2&prerelease
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 | 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. |
-
net8.0
- ComputeSharp (>= 3.1.0-preview2)
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 | 40 | 10/22/2024 |
3.1.0-preview1 | 77 | 9/19/2024 |
3.0.1 | 211 | 6/18/2024 |
3.0.0 | 58 | 6/10/2024 |
3.0.0-preview2 | 207 | 12/17/2023 |
3.0.0-preview1 | 129 | 11/24/2023 |