Skip to content

Transpiles a C# subset to non .NET languages. (Powered by Roslyn)

License

Notifications You must be signed in to change notification settings

reignstudios/CS2X

Repository files navigation

CS2X (Under development)

Transpiles a C# subset to non .NET languages. (Powered by Roslyn)
NOTE: IL2X will be for CPU targets

Goals

This project will focus on transpiling a C# subset with a modified type system for writing GPU programs.

  • HLSL (DirectX Shader Assembly Language) [D3D9.0c +]
  • ALS (DirectX Shader Assembly Language) [D3D8.0 - D3D9.0c]
  • GLSL (OpenGL shading language) [OpenGL2.0 / GLES2 +]
  • ARB (ARB assembly language) [legacy / homebrew systems]
  • CG (Cg programming language) [PSVita, Nvidia / other]
  • PSSL (PlayStation Shader Language) [PS4]
  • MSL (Metal Shading Language) [macOS / iOS]
  • AGAL (Adobe Graphics Assembly Language)
  • Custom, etc

Primary Project libraries

  • CS2X.Core: .NET transpiler lib
  • CS2X.CLI: CLI interface for CS2X.Core
  • CS2X.Analyzer: C# syntax analyzer to limit unsuported features.
  • CS2X.CoreLib: Portable CoreLib subset

Building

NOTE: To clone repo you will need the Git Large File Storage

  • Prerequisites
    • VS 2022, vscode, Rider, etc
    • .NET 8

Is this project ready for general use?

No still experimental.

Releases

No releases published

Packages

No packages published

Languages