Skip to content

Repository files navigation

msl2glsl

Parses MSL and spits out GLSL

Contributors

Gorm Lai lai.gorm@gmail.com

Dependencies

** Linux ** To build the following programs are needed in your path:

  • Bison (v 3+)
  • Flex
  • Meson
  • A C++14 capable compiler

** Windows **

Building

Inspirational sources

Background

Gorm wrote a little background about the msl shader compiler here.

Improvements

  • Make fully compliant with Metal syntax (Metal is based on C++14, while this is more based on a C85 standard)
  • Argument parsing ** Argument for not adding version tag
  • Make location keyword on in/out optional
  • Make uniform blocks optional
  • Fix how initializers are handled as they only work with certain constructs
  • Bug with insertion of empty statements (;) in if-else after statements blocks
  • Automatically calculate version tag
  • Add support for atan2
  • Fix bug with ; created after statement blocks
  • Deal with incompatibilities such as being able to modify input on msl, but not on glsl

About

Parses MSL and spits out GLSL

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages