Skip to content
/ SharpX Public

C# to Shader Compiler that supports Unity Cg/HLSL, HLSL, GLSL and WebGL.

License

Notifications You must be signed in to change notification settings

mika-f/SharpX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpX - C# Transpiler

C# to any language Transpiler written in C#, powered by Roslyn.

Supports

  • ShaderLab [working]
  • HLSL [working]
  • GLSL [planned]
  • WebGL [planned]

Implementation

SharpX is a C# AST to X AST compiler.
The X AST-worthy part is done with a minimal implementation of the Red-Green Trees used in the Roslyn Compiler.
For more information, see the core implementation SharpX.Core or SharpX.Hlsl.

Objective

The goals of SharpX is to output shader code for each platform (Unity, WebGL, ShaderToy, others) from a single C# source code.
We should also like to use a new C# features, like Babel, a JavaScript Compiler, to reduce the amount of code in the shader itself.

License

About

C# to Shader Compiler that supports Unity Cg/HLSL, HLSL, GLSL and WebGL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages