My goal is to be able to leverage the GPU in a background thread to create an offscreen image that is rendered using the Skia Canvas class. Ideally I would have liked to use Compose multiplatform and its Skiko library to do this, but due to the limitations of its DirectContext class, its not possible to write an EGL surface into its Canvas.
As a consequence, I've had to use native functionality to implement this. I have it working for the desktop using the LWJGL library. For Android I follow these steps, running from an event queue that is running in a background thread:
not kotlin but kotlin colored 2
🧵 2
Tom Cuthill
01/27/2025, 9:38 PM
Easier said than done. I've spent the last hour trying to open a topic in the Android channel. The GUI is unstable under windows.
Tom Cuthill
01/27/2025, 9:39 PM
It is a Kotlin question, in regards to Android.
Tom Cuthill
01/27/2025, 9:41 PM
Look at the code, it is entirely written in Kotlin.
Tom Cuthill
01/27/2025, 9:42 PM
Just telling me I'm doing something wrong without explaining how to fix it is no kind of help. NW, I'll delete my account.
Tom Cuthill
01/27/2025, 9:45 PM
Then why have an Android channel. A very similar question was asked on one of your channels and that is how I found slack. Sorry for bothering you.