Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mika-f/sharpx
C# to Shader Compiler that supports Unity Cg/HLSL, HLSL, GLSL and WebGL.
https://github.com/mika-f/sharpx
glsl hlsl shader transpiler webgl
Last synced: 4 days ago
JSON representation
C# to Shader Compiler that supports Unity Cg/HLSL, HLSL, GLSL and WebGL.
- Host: GitHub
- URL: https://github.com/mika-f/sharpx
- Owner: mika-f
- License: mit
- Created: 2022-04-11T03:36:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T09:55:17.000Z (over 2 years ago)
- Last Synced: 2024-05-02T02:21:29.487Z (7 months ago)
- Topics: glsl, hlsl, shader, transpiler, webgl
- Language: C#
- Homepage:
- Size: 609 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* MIT by [@6jz](https://twitter.com/6jz)
* Some codes is taken from [dotnet/roslyn](https://github.com/dotnet/roslyn) - [MIT](https://github.com/dotnet/roslyn/blob/main/License.txt) by .NET Foundation and Contributors