File tree Expand file tree Collapse file tree 6 files changed +37
-1551
lines changed Expand file tree Collapse file tree 6 files changed +37
-1551
lines changed Original file line number Diff line number Diff line change 4
4
* @module glsl-transpiler
5
5
*/
6
6
7
- import GLSL from './lib/index.cjs ' ;
7
+ import GLSL from './lib/index.js ' ;
8
8
9
9
10
10
//static bindings
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /**
2
+ * A collection of builtins with types
3
+ */
4
+
5
+ const builtins = {
6
+ gl_NumWorkGroups : 'uvec3' ,
7
+ gl_WorkGroupSize : 'uvec3' ,
8
+ gl_WorkGroupID : 'uvec3' ,
9
+ gl_LocalInvocationID : 'uvec3' ,
10
+ gl_GlobalInvocationID : 'uvec3' ,
11
+ gl_LocalInvocationIndex : 'uint' ,
12
+ gl_VertexID : 'int' ,
13
+ gl_InstanceID : 'int' ,
14
+ gl_Position : 'vec4' ,
15
+ gl_PointSize : 'float' ,
16
+ gl_ClipDistance : 'float' ,
17
+ gl_FragCoord : 'vec4' ,
18
+ gl_FragColor : 'vec4' ,
19
+ gl_FrontFacing : 'bool' ,
20
+ gl_PointCoord : 'vec2' ,
21
+ gl_PrimitiveID : 'int' ,
22
+ gl_SampleID : 'int' ,
23
+ gl_SamplePosition : 'vec2' ,
24
+ gl_SampleMaskIn : 'int' ,
25
+ gl_Layer : 'int' ,
26
+ gl_ViewportIndex : 'int' ,
27
+ gl_FragDepth : 'float' ,
28
+ gl_SampleMask : 'int' ,
29
+ }
30
+
31
+ export default builtins
You can’t perform that action at this time.
0 commit comments