-
Notifications
You must be signed in to change notification settings - Fork 25
Added GLSL parser #115
base: master
Are you sure you want to change the base?
Added GLSL parser #115
Conversation
@@ -406,6 +406,10 @@ shrinkExpr expr = | |||
-- TODO take a stab at this? Do we actually even generate these? | |||
nope | |||
|
|||
CanonicalU.Shader _ -> | |||
-- TODO take a stab at this? Do we actually even generate these? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we would have to make well-defined GLSL programs here. Let's leave it as it is right now 👍
Looks good so far! I'm curious to see how the shader type turns out! Don't hesitate to ask on Discord if you want help with generating the type equations :) (Type inference tests will be the most interesting and important part here I believe.) |
added two more examples to the shader parser tests, based of https://github.com/elm-explorations/webgl/blob/81527c23ba21d9bf92f34151a6a4c40a68460e1f/examples/Triangle.elm#L77-L105 |
An initial implementation for the WebGL Shader (GLSL) parser.