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 D2D constant buffer size diagnostics to analyzer #752
This PR includes two improvements to the D2D generator:
It moves the diagnostics for exceeding the constant buffer size on a shader type to an analyzer
It adds new unit test for the diagnostic (there were none before)
The analyzer is not reusing the same exact method as the generator to allow for further optimizations. Specifically, it uses a minimal copy that avoids all the additional work to also compute the field info only required by the marshalling code.
Description
This PR includes two improvements to the D2D generator:
The analyzer is not reusing the same exact method as the generator to allow for further optimizations. Specifically, it uses a minimal copy that avoids all the additional work to also compute the field info only required by the marshalling code.