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

Implement full support for static fields #703

Closed Sergio0694 closed 11 months ago

Sergio0694 commented 11 months ago

Closes #298

Description

This PR implements full support for static fields in shaders. In particular:

The supported types are the same as before. Both readonly and non readonly fields are supported.