1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
7 | Object.defineProperty(exports, "Component", {
|
8 | enumerable: true,
|
9 | get: function get() {
|
10 | return _ComponentManager.Component;
|
11 | }
|
12 | });
|
13 | Object.defineProperty(exports, "ComponentManager", {
|
14 | enumerable: true,
|
15 | get: function get() {
|
16 | return _ComponentManager.ComponentManager;
|
17 | }
|
18 | });
|
19 | Object.defineProperty(exports, "ConfigService", {
|
20 | enumerable: true,
|
21 | get: function get() {
|
22 | return _ConfigService.ConfigService;
|
23 | }
|
24 | });
|
25 | exports.Target = exports.STORAGE_CLASS = exports.DefineValuePlaceholder = void 0;
|
26 | Object.defineProperty(exports, "createEntity", {
|
27 | enumerable: true,
|
28 | get: function get() {
|
29 | return _Entity.createEntity;
|
30 | }
|
31 | });
|
32 | Object.defineProperty(exports, "gl", {
|
33 | enumerable: true,
|
34 | get: function get() {
|
35 | return _gl.gl;
|
36 | }
|
37 | });
|
38 | Object.defineProperty(exports, "isSafari", {
|
39 | enumerable: true,
|
40 | get: function get() {
|
41 | return _isSafari.isSafari;
|
42 | }
|
43 | });
|
44 | var _ComponentManager = require("./ComponentManager");
|
45 | var _gl = require("./components/renderer/gl");
|
46 | var _Entity = require("./Entity");
|
47 | var _ConfigService = require("./services/config/ConfigService");
|
48 | var _isSafari = require("./utils/isSafari");
|
49 | var AST_TOKEN_TYPES;
|
50 | exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES;
|
51 | (function (AST_TOKEN_TYPES) {
|
52 | AST_TOKEN_TYPES["Void"] = "Void";
|
53 | AST_TOKEN_TYPES["Boolean"] = "Boolean";
|
54 | AST_TOKEN_TYPES["Float"] = "Float";
|
55 | AST_TOKEN_TYPES["Uint32"] = "Uint32";
|
56 | AST_TOKEN_TYPES["Int32"] = "Int32";
|
57 | AST_TOKEN_TYPES["Vector"] = "Vector";
|
58 | AST_TOKEN_TYPES["Vector2Float"] = "vec2<f32>";
|
59 | AST_TOKEN_TYPES["Vector3Float"] = "vec3<f32>";
|
60 | AST_TOKEN_TYPES["Vector4Float"] = "vec4<f32>";
|
61 | AST_TOKEN_TYPES["Vector2Boolean"] = "vec2<bool>";
|
62 | AST_TOKEN_TYPES["Vector3Boolean"] = "vec3<bool>";
|
63 | AST_TOKEN_TYPES["Vector4Boolean"] = "vec4<bool>";
|
64 | AST_TOKEN_TYPES["Vector2Uint"] = "vec2<u32>";
|
65 | AST_TOKEN_TYPES["Vector3Uint"] = "vec3<u32>";
|
66 | AST_TOKEN_TYPES["Vector4Uint"] = "vec4<u32>";
|
67 | AST_TOKEN_TYPES["Vector2Int"] = "vec2<i32>";
|
68 | AST_TOKEN_TYPES["Vector3Int"] = "vec3<i32>";
|
69 | AST_TOKEN_TYPES["Vector4Int"] = "vec4<i32>";
|
70 | AST_TOKEN_TYPES["Matrix"] = "Matrix";
|
71 | AST_TOKEN_TYPES["Matrix3x3Float"] = "mat3x3<f32>";
|
72 | AST_TOKEN_TYPES["Matrix4x4Float"] = "mat4x4<i32>";
|
73 | AST_TOKEN_TYPES["Struct"] = "Struct";
|
74 | AST_TOKEN_TYPES["FloatArray"] = "Float[]";
|
75 | AST_TOKEN_TYPES["Vector4FloatArray"] = "vec4<f32>[]";
|
76 | })(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {}));
|
77 | var AST_NODE_TYPES;
|
78 | exports.AST_NODE_TYPES = AST_NODE_TYPES;
|
79 | (function (AST_NODE_TYPES) {
|
80 | AST_NODE_TYPES["Program"] = "Program";
|
81 | AST_NODE_TYPES["Identifier"] = "Identifier";
|
82 | AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration";
|
83 | AST_NODE_TYPES["BlockStatement"] = "BlockStatement";
|
84 | AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement";
|
85 | AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration";
|
86 | AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator";
|
87 | AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression";
|
88 | AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression";
|
89 | AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression";
|
90 | AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression";
|
91 | AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression";
|
92 | AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression";
|
93 | AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression";
|
94 | AST_NODE_TYPES["MemberExpression"] = "MemberExpression";
|
95 | AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression";
|
96 | AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement";
|
97 | AST_NODE_TYPES["CallExpression"] = "CallExpression";
|
98 | AST_NODE_TYPES["NumThreadStatement"] = "NumThreadStatement";
|
99 | AST_NODE_TYPES["StorageStatement"] = "StorageStatement";
|
100 | AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement";
|
101 | AST_NODE_TYPES["WhileStatement"] = "WhileStatement";
|
102 | AST_NODE_TYPES["ForStatement"] = "ForStatement";
|
103 | AST_NODE_TYPES["BreakStatement"] = "BreakStatement";
|
104 | AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement";
|
105 | AST_NODE_TYPES["IfStatement"] = "IfStatement";
|
106 | AST_NODE_TYPES["ImportedFunctionStatement"] = "ImportedFunctionStatement";
|
107 | })(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {}));
|
108 | var STORAGE_CLASS;
|
109 | exports.STORAGE_CLASS = STORAGE_CLASS;
|
110 | (function (STORAGE_CLASS) {
|
111 | STORAGE_CLASS["Input"] = "Input";
|
112 | STORAGE_CLASS["Output"] = "Output";
|
113 | STORAGE_CLASS["Uniform"] = "Uniform";
|
114 | STORAGE_CLASS["Workgroup"] = "Workgroup";
|
115 | STORAGE_CLASS["UniformConstant"] = "UniformConstant";
|
116 | STORAGE_CLASS["Image"] = "Image";
|
117 | STORAGE_CLASS["StorageBuffer"] = "StorageBuffer";
|
118 | STORAGE_CLASS["Private"] = "Private";
|
119 | STORAGE_CLASS["Function"] = "Function";
|
120 | })(STORAGE_CLASS || (exports.STORAGE_CLASS = STORAGE_CLASS = {}));
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 | var Target;
|
128 | exports.Target = Target;
|
129 | (function (Target) {
|
130 | Target["GLSL100"] = "GLSL100";
|
131 | Target["GLSL450"] = "GLSL450";
|
132 | Target["WGSL"] = "WGSL";
|
133 | })(Target || (exports.Target = Target = {}));
|
134 | var DefineValuePlaceholder = '__DefineValuePlaceholder__';
|
135 | exports.DefineValuePlaceholder = DefineValuePlaceholder;
|
136 |
|
\ | No newline at end of file |