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

Add UWP support back #835

Closed Sergio0694 closed 1 month ago

Sergio0694 commented 1 month ago

Follow up to #602

IAmBackEstoyDeVueltaGIF

Description

This PR adds back UWP support (or more precisely, support for apps using Windows.UI.Xaml projections, be it from a UWP app, or via XAML Islands, or something else). All common code with the WinUI libraries has been moved back into shared projects to the WinUI 3 projects. Along with this, the new projects also added defines for WINDOWS_UWP to enable conditional checks in those shared files. No changes have been done to test projects or sample apps in this PR.