aboutsummaryrefslogtreecommitdiff
path: root/tests/main.amal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.amal')
-rw-r--r--tests/main.amal22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/main.amal b/tests/main.amal
index ae37816..c12ecba 100644
--- a/tests/main.amal
+++ b/tests/main.amal
@@ -20,8 +20,28 @@ const main = fn {
episfjpseifipesf
*/
io.puts("lole");
+ if num1 == 43
+ print(2);
}
const print = fn {
-} \ No newline at end of file
+}
+
+/*
+// Shader main function is guaranteed to be inline if run on CPU
+
+const vertex_passthrough = VertexShader {
+ const main = fn() vec4f {
+ return gl_ModelViewProjectionMatrix * gl_Vertex;
+ }
+}
+
+const fragment_passthrough = FragmentShader {
+ tex: texture2d;
+
+ const main = fn(coord: vec2f) vec2f {
+ return tex.getPixel(coord);
+ }
+}
+*/