Hello everyone! I'm Rasmus and am exploring using Dawn to implement a sort of window server with Dawn in a client-server model.
TL;DR: Is there an example or demo out there of dawn as a client-server where the client doesn't need to share memory with the server (and doesn't need to know about the specific hardware; kind of like how it works in Chromium) ?
So far I've been able to piece together a simple demo with two programs: server.cc with dawn_native serving connections over a UNIX socket and a client.cc using dawn_wire connecting to the UNIX socket. This is kind of working — I have to mirror WebGPU programs in the server and run a dummy WireClient in the server.
Has anyone seen a proper proof of concept, example or demo of a truly separate server-client using dawn_wire?
(I've spend about two full days, first one familiarizing myself with the dawn codebase, second implementing a demo. The lack of documentation and examples has made this a little challenging, but I'm always up for a challenge :-)
Here's the code: https://gist.github.com/rsms/a891d9904378576e8fb3e11a3fb957fa
Grateful for any help or pointers in the right direction!
--
You received this message because you are subscribed to the Google Groups "Dawn Graphics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dawn-graphic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dawn-graphics/c059e88b-28b5-4513-b62c-e82bb76090c7n%40googlegroups.com.