hadronized / glsl

GLSL parser for Rust
190 stars 28 forks source link

where should I start #155

Open SeleDreams opened 1 year ago

SeleDreams commented 1 year ago

Hi, I'm looking into programming a glsl compiler for the 3ds, as at the moment we can only program shaders in PICA 200 assembly which is pretty inconvenient. so I was looking into making a glsl to pica 200 asm compiler using this library to handle the parsing them convert the appropriate function calls etc to the assembly language. however i'm not too sure where to start. like I followed the base examples to load shader code in the parser, but after that i'm not sure about what i'm supposed to do. how do i get the instructions from the shader file to be able to convert them

SeleDreams commented 1 year ago

to be more precise i just don't know what i'm supposed to do after getting a TranslationUnit