We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb9089d commit fcc4d21Copy full SHA for fcc4d21
compiler/src/AST/Utils/Shader.hs
@@ -42,6 +42,7 @@ data Types =
42
data Type
43
= Int
44
| Float
45
+ | Bool
46
| V2
47
| V3
48
| V4
compiler/src/Parse/Shader.hs
@@ -174,6 +174,7 @@ extractInputs decl =
174
GLS.Mat4 -> [(qual, Shader.M4, name)]
175
GLS.Int -> [(qual, Shader.Int, name)]
176
GLS.Float -> [(qual, Shader.Float, name)]
177
+ GLS.Bool -> [(qual, Shader.Bool, name)]
178
GLS.Sampler2D -> [(qual, Shader.Texture, name)]
179
_ -> []
180
compiler/src/Type/Constrain/Expression.hs
@@ -502,6 +502,7 @@ glToType glType =
502
Shader.M4 -> Type.mat4
503
Shader.Int -> Type.int
504
Shader.Float -> Type.float
505
+ Shader.Bool -> Type.bool
506
Shader.Texture -> Type.texture
507
508
0 commit comments