blob: c12ecbabe136c6fb32101bb25ccbbce90d022d2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
const io = @import("io.amal");
const User = struct {
name: str;
age: i32;
}
const main = fn {
var hello = fn {
}
const value = "hello";
print(value, "world", 356, 13.37);
var num1: i64;
const num2 = 23232;
const num3 = num1 + num2 * 30;
//const num4 = (num1 + num2) * num3 * ((34 + 32) / 234.345);
const num4 = (num1 + num2) * num3 * ((34 + 32) / 2);
/*
episfjpseifipesf
*/
io.puts("lole");
if num1 == 43
print(2);
}
const print = fn {
}
/*
// 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);
}
}
*/
|