I’m interested in using Flutter for an application that needs to run on Windows (MacOS will be required but not initially). A hard requirement is that content rendered with Vulkan (viewport/texture) is displayed within the application alongside and underneath UI elements.
After a bit of research it is unclear to me if there is a straightforward way to achieve this with Flutter/Dart. I did find some documentation in the Windows API but I think it may be out of date - it links to Flutter Windows Embedder
which seems to be for a discontinued repository.
Looking into the native Windows code I see that it could be possibly hacked in to create my own HWND but that wouldn’t be ideal…
I also noted that there is a Vulkan bindings package available for Dart but it doesn’t seem to be relevant to Flutter (the example just opens a GLFW window) - in either case I would need to use FFI with existing Vulkan code for this application (which I can update to interface with Dart).
I’m just not seeing a clear path to either sharing a texture (with Skia I presume on windows) or get a HWND to a child window managed by Flutter.
Any thoughts or precedent relating to this?