Friday, November 16, 2012

Writing GPU Shaders in F#

I have been working lately on a library that allows one to write shaders in F#. It uses code quotations to translate these shaders to HLSL before being executed on the GPU. Check out SharpShaders on GitHub.

4 comments:

  1. I dont suppose you have considered doing this in OpenGL and GLSL shaders?

    ReplyDelete
  2. It is totally feasible, I just don't have the time to be truthful.

    ReplyDelete
  3. I was hoping you wouldn't say that :(

    I have been playing around with MonoGame and it would of been good way to leverage F# to produce cross platform shaders.

    Ill fork your repo and have a play around...

    An F# article on the high level steps involved with SharpShader would be great. If you had the time...

    ReplyDelete
  4. Hi guys. Recently took an EdX MOOC form UC Berkeley Graphics etc OpenGL, "C", and was wondering about using Fsharp ... I'll check the GitHub, but what is the status?
    thanks, PLH OOE Art

    ReplyDelete