AnswerDotAI / gpu.cpp

A lightweight library for portable low-level GPU computation using WebGPU.
https://gpucpp.answer.ai
Apache License 2.0
3.75k stars 176 forks source link

Bindings - Export Functions for FFI #17

Closed MichealReed closed 2 months ago

MichealReed commented 3 months ago

With #16 we are building the recipe for our libraries but nothing is exported. The task is to handle exports within gpu.h directly for the varying platforms or to provide an additional file with the exports.

MichealReed commented 2 months ago

Better to allow end users to wrap this themselves, may be hard to find a universal wrapper that works for all. You can see my WIP towards a wrapper for dart here.

https://github.com/MichealReed/minigpu/tree/master/minigpu_ffi/src