dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
6.91k stars 1.14k forks source link

WPF + DXVK + WebGPU/We metal = SilverLight #3727

Open arontsang opened 3 years ago

arontsang commented 3 years ago

Native Browser silver light support. Think about it!

ClosetBugSlayer commented 3 years ago

Steve Jobs thought about it and promptly banned Flash from iOS.

arontsang commented 3 years ago

@ClosetBugSlayer Steve Jobs banned the Flash PLUGIN. Yet he allowed HTML5+Javascript. The reasoning being that the PLUGIN was closed source. "Adobe's Flash products are 100% proprietary," -Steve Jobs.

This would be a solution that is pure WebASM and HTML5 and would be a logical next step for mixing Blazor tech with WPF. If the DotNet foundation continues down their current path, the entire pipeline would be FOSS.

The main reason that WPF is currently Windows only, is that it has native windows bindings (the biggest of which is DirectX). Translating the DX layer to Vulkan and running that on WebGPU would allow fully accelerated WPF on WebASM/DotNet Core.

AlexanderDorofeev commented 2 years ago

The provided approach makes sense, cos current Microsoft technologies do not provide support for targeting Xaml based desktop apps for Linux or Web platforms. Not sure if this should be implemented on top of WPF or Silverlight V-Next, maybe Maui will be the best choice, cos of its cross-platform nature.

lindexi commented 2 years ago

It is hard to bring wpf to DXVK

arontsang commented 2 years ago

@lindexi My understanding of WPF is that "All display in WPF is done through the DirectX engine, allowing for efficient hardware and software rendering."*

Given that DXVK is a drop in DX replacement with a VK backend. It SHOULD be easy.