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! 🚀
MIT License
2.79k stars 124 forks source link

Add analyzer for non constant input arguments for all 'D2D' intrinsics #877

Closed Sergio0694 closed 3 days ago

Sergio0694 commented 5 days ago

Description

This PR adds a new analyzer to emit errors if a D2D API is used with an index which is not a constant.

Example

image