Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSStewart committed Mar 25, 2024
1 parent cb9089d commit fcc4d21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/AST/Utils/Shader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ data Types =
data Type
= Int
| Float
| Bool
| V2
| V3
| V4
Expand Down
1 change: 1 addition & 0 deletions compiler/src/Parse/Shader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ extractInputs decl =
GLS.Mat4 -> [(qual, Shader.M4, name)]
GLS.Int -> [(qual, Shader.Int, name)]
GLS.Float -> [(qual, Shader.Float, name)]
GLS.Bool -> [(qual, Shader.Bool, name)]
GLS.Sampler2D -> [(qual, Shader.Texture, name)]
_ -> []
_ -> []
Expand Down
1 change: 1 addition & 0 deletions compiler/src/Type/Constrain/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ glToType glType =
Shader.M4 -> Type.mat4
Shader.Int -> Type.int
Shader.Float -> Type.float
Shader.Bool -> Type.bool
Shader.Texture -> Type.texture


Expand Down

0 comments on commit fcc4d21

Please sign in to comment.