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.7k stars 121 forks source link

Move almost all [D2DPixelShaderSource] diagnostics to analyzers #757

Closed Sergio0694 closed 8 months ago

Sergio0694 commented 8 months ago

Description

This PR optimizes the diagnostics in the [D2DPixelShaderSource] generator. It moves these to analyzers:

It then further optimizes the diagnostics setup in the generator, by dropping the array builder entirely.