Hello, I'm trying to create a low-overhead binding...
# multiplatform
a
Hello, I'm trying to create a low-overhead binding over Native (CInterops), JVM (FFM), and Android (JNA). I've attempted to do this on native
Copy code
value class WGPUQueue2(val value: webgpu.native.WGPUQueue)
actual typealias WGPUQueue = WGPUQueue2
Copy code
actual typealias WGPUQueue = webgpu.native.WGPUQueue
Copy code
actual typealias WGPUQueue = kotlinx.cinterop.CPointer<cnames.structs.WGPUQueueImpl>
But the compiler is giving me errors, and I'm stuck with this :
Copy code
actual class WGPUQueue(val value: webgpu.native.WGPUQueue)
Does anyone have any ideas for how to achieve this without creating a new class to wrap my type, regardless of the target platform?