Open longde123 opened 7 years ago
That would be sweet, It'd take a while though. Easiest thing to do in the short term is to use a macro to execute linked the code GLSL -> SPRIV as an external process. Another thing worth looking into is HXSL, which is a haxe-based shader language designed for shader or bytecode generation (see the AgalOut.hx for flash shader bytecode)
I think a backend SPIRV generate more fun
SPIR-V based GLSL cross-compiler like this https://github.com/Kode/krafix
whole SPIRV work process in haxe
Good idea for flash bytecode , backend HXSL only need GLSL ES ast -> HXSL ast
have a plan? GLSL ES -> SPIRV transpilation :)
like this
https://github.com/KhronosGroup/glslang/blob/master/SPIRV/GlslangToSpv.cpp