Search code examples
f#gpuopenclopentk

F# with OpenTK example?


Is anybody aware of a possibility to use C# libraries like OpenTK (http://www.opentk.com/) from F#, too? I'm especially interested in a Math toolkit library to give some scripts extra speed by taking advantage of the GPU from within F#.

What's a painless way to do that? :)


Solution

  • As Juliet mentions, you can use any .NET library from F#. Talking about OpenTK specifically, there is some material written by Laurent Le Brun (however, all of them are about graphics and not math):

    It's probably not exactly the same thing as you're looking for, but it should help (e.g. if there are some tricky things that need to be done when using OpenTK from F#)