Add README files for all NuGet packages

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-24 12:56:52 +01:00
1 親 0392989b12
コミット 1b96657db7
9ファイル変更
+177

検索条件に一致するファイルはありません

+24
ファイルの表示
@@ -0,0 +1,24 @@
![](https://user-images.githubusercontent.com/10199417/108635546-3512ea00-7480-11eb-8172-99bc59f4eb6f.png)
# 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:
```csharp
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](https://github.com/Sergio0694/ComputeSharp).