glre 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +34 -64
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d.cts → index.d.ts} +184 -191
- package/dist/index.js +34 -64
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +34 -64
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.ts +54 -0
- package/dist/native.js +34 -64
- package/dist/native.js.map +1 -1
- package/dist/react.cjs +34 -64
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +8 -0
- package/dist/react.js +34 -64
- package/dist/react.js.map +1 -1
- package/dist/solid.cjs +34 -64
- package/dist/solid.cjs.map +1 -1
- package/dist/solid.d.ts +8 -0
- package/dist/solid.js +34 -64
- package/dist/solid.js.map +1 -1
- package/package.json +7 -6
- package/src/index.ts +19 -5
- package/src/node/code.ts +79 -77
- package/src/node/const.ts +27 -44
- package/src/node/index.ts +98 -12
- package/src/node/infer.ts +32 -15
- package/src/node/node.ts +20 -21
- package/src/node/parse.ts +160 -0
- package/src/node/scope.ts +48 -23
- package/src/node/types.ts +100 -57
- package/src/node/utils.ts +63 -94
- package/src/types.ts +32 -16
- package/src/utils/pipeline.ts +136 -95
- package/src/utils/program.ts +7 -36
- package/src/webgl.ts +7 -3
- package/src/webgpu.ts +82 -58
- package/dist/native.d.cts +0 -53
- package/dist/react.d.cts +0 -8
- package/dist/solid.d.cts +0 -8
package/dist/native.d.cts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as reev from 'reev';
|
|
2
|
-
import * as refr_dist_types_687121c7 from 'refr/dist/types-687121c7';
|
|
3
|
-
import { GL, NodeProxy, WebGPUState, WebGLState, Uniform, Attribute } from './index.cjs';
|
|
4
|
-
export { ADDITIONAL_FUNCTIONS, Attributes, BOOL_RETURN_FUNCTIONS, BUILTIN_TYPES, COMPARISON_OPERATORS, COMPONENT_COUNT_TO_TYPE, CONSTANTS, CONVERSIONS, Constants, Conversions, FIRST_ARG_TYPE_FUNCTIONS, FUNCTIONS, Fn, FnLayout, Functions, GLClearMode, GLDrawMode, GLDrawType, GPUBindGroup, GPUBuffer, GPUContext, GPUDevice, GPUPipeline, HIGHEST_TYPE_FUNCTIONS, If, LOGICAL_OPERATORS, Loop, NodeConfig, NodeProps, NodeTypes, OPERATORS, OPERATOR_KEYS, Operators, PRESERVE_TYPE_FUNCTIONS, PrecisionMode, SCALAR_RETURN_FUNCTIONS, SWIZZLES, Switch, Swizzles, TYPE_MAPPING, Uniforms, VEC3_RETURN_FUNCTIONS, VEC4_RETURN_FUNCTIONS, WGSL_TO_GLSL_BUILTIN, X, abs, acos, alignTo256, all, any, asin, assign, atan, atan2, attribute, bitcast, bool, builtin, bvec2, bvec3, bvec4, cbrt, ceil, clamp, code, color, constant, conversion, conversionToConstant, cos, createAttrib, createBindGroup, createBufferLayout, createDescriptor, createDevice, default as createGL, createIbo, createPipeline, createProgram, createTexture, createTextureSampler, createUniformBuffer, createVbo, createVertexBuffer, cross, cubeTexture, dFdx, dFdy, defaultFragmentGLSL, defaultVertexGLSL, degrees, difference, dig, distance, dot, each, equals, exp, exp2, ext, faceforward, fig, float, floor, flush, formatConversions, fract, fragDepth, fragment, frontFacing, function_, fwidth, generateDefine, getBluiltin, getId, getOperator, getStride, hex2rgb, iMouse, iResolution, iTime, infer, inferImpl, instanceIndex, int, inverseSqrt, is, isConversion, isFunction, isGL, isNodeProxy, isOperator, isServer, isSwizzle, isWebGPUSupported, ivec2, ivec3, ivec4, joins, length, lengthSq, log, log2, mat2, mat3, mat4, max, min, mix, negate, node, normalLocal, normalView, normalWorld, normalize, oneMinus, operator, pointCoord, position, positionLocal, positionView, positionWorld, pow, pow2, pow3, pow4, radians, reciprocal, reflect, refract, replace, round, sampleIndex, sampleMask, saturate, screenCoordinate, screenUV, select, sig, sign, sin, smoothstep, sqrt, step, swizzle, tan, texture, textureSize, toVar, transformDirection, trunc, uint, uniform, uvec2, uvec3, uvec4, variable, varying, vec2, vec3, vec4, vertex, vertexIndex, webgl, webgpu } from './index.cjs';
|
|
5
|
-
export { Frame, Fun, Queue } from 'refr';
|
|
6
|
-
|
|
7
|
-
declare const useGL: (props?: Partial<GL>) => reev.EventState<{
|
|
8
|
-
isNative: boolean;
|
|
9
|
-
isWebGL: boolean;
|
|
10
|
-
isLoop: boolean;
|
|
11
|
-
isGL: true;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
size: [number, number];
|
|
15
|
-
mouse: [number, number];
|
|
16
|
-
count: number;
|
|
17
|
-
el: HTMLCanvasElement;
|
|
18
|
-
vs: string | NodeProxy;
|
|
19
|
-
fs: string | NodeProxy;
|
|
20
|
-
vert: string | NodeProxy;
|
|
21
|
-
frag: string | NodeProxy;
|
|
22
|
-
vertex: string | NodeProxy;
|
|
23
|
-
fragment: string | NodeProxy;
|
|
24
|
-
webgpu: WebGPUState;
|
|
25
|
-
webgl: WebGLState;
|
|
26
|
-
queue: refr_dist_types_687121c7.Q;
|
|
27
|
-
frame: refr_dist_types_687121c7.a;
|
|
28
|
-
ref?: any;
|
|
29
|
-
init(): void;
|
|
30
|
-
loop(): void;
|
|
31
|
-
mount(): void;
|
|
32
|
-
clean(): void;
|
|
33
|
-
render(): void;
|
|
34
|
-
resize(e?: Event): void;
|
|
35
|
-
mousemove(e: Event): void;
|
|
36
|
-
_uniform?(key: string, value: Uniform, isMatrix?: boolean): GL;
|
|
37
|
-
uniform(key: string, value: Uniform, isMatrix?: boolean): GL;
|
|
38
|
-
uniform(target: {
|
|
39
|
-
[key: string]: Uniform;
|
|
40
|
-
}): GL;
|
|
41
|
-
_texture?(key: string, value: string): GL;
|
|
42
|
-
texture(key: string, value: string): GL;
|
|
43
|
-
texture(target: {
|
|
44
|
-
[key: string]: string;
|
|
45
|
-
}): GL;
|
|
46
|
-
_attribute?(key: string, value: Attribute, iboValue?: Attribute): GL;
|
|
47
|
-
attribute(key: string, value: Attribute, iboValue?: Attribute): GL;
|
|
48
|
-
attribute(target: {
|
|
49
|
-
[key: string]: Attribute;
|
|
50
|
-
}): GL;
|
|
51
|
-
}, any[] | unknown[]>;
|
|
52
|
-
|
|
53
|
-
export { Attribute, GL, NodeProxy, Uniform, WebGLState, WebGPUState, useGL };
|
package/dist/react.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as reev from 'reev';
|
|
2
|
-
import { GL } from './index.cjs';
|
|
3
|
-
export { ADDITIONAL_FUNCTIONS, Attribute, Attributes, BOOL_RETURN_FUNCTIONS, BUILTIN_TYPES, COMPARISON_OPERATORS, COMPONENT_COUNT_TO_TYPE, CONSTANTS, CONVERSIONS, Constants, Conversions, FIRST_ARG_TYPE_FUNCTIONS, FUNCTIONS, Fn, FnLayout, Functions, GLClearMode, GLDrawMode, GLDrawType, GPUBindGroup, GPUBuffer, GPUContext, GPUDevice, GPUPipeline, HIGHEST_TYPE_FUNCTIONS, If, LOGICAL_OPERATORS, Loop, NodeConfig, NodeProps, NodeProxy, NodeTypes, OPERATORS, OPERATOR_KEYS, Operators, PRESERVE_TYPE_FUNCTIONS, PrecisionMode, SCALAR_RETURN_FUNCTIONS, SWIZZLES, Switch, Swizzles, TYPE_MAPPING, Uniform, Uniforms, VEC3_RETURN_FUNCTIONS, VEC4_RETURN_FUNCTIONS, WGSL_TO_GLSL_BUILTIN, WebGLState, WebGPUState, X, abs, acos, alignTo256, all, any, asin, assign, atan, atan2, attribute, bitcast, bool, builtin, bvec2, bvec3, bvec4, cbrt, ceil, clamp, code, color, constant, conversion, conversionToConstant, cos, createAttrib, createBindGroup, createBufferLayout, createDescriptor, createDevice, default as createGL, createIbo, createPipeline, createProgram, createTexture, createTextureSampler, createUniformBuffer, createVbo, createVertexBuffer, cross, cubeTexture, dFdx, dFdy, defaultFragmentGLSL, defaultVertexGLSL, degrees, difference, dig, distance, dot, each, equals, exp, exp2, ext, faceforward, fig, float, floor, flush, formatConversions, fract, fragDepth, fragment, frontFacing, function_, fwidth, generateDefine, getBluiltin, getId, getOperator, getStride, hex2rgb, iMouse, iResolution, iTime, infer, inferImpl, instanceIndex, int, inverseSqrt, is, isConversion, isFunction, isGL, isNodeProxy, isOperator, isServer, isSwizzle, isWebGPUSupported, ivec2, ivec3, ivec4, joins, length, lengthSq, log, log2, mat2, mat3, mat4, max, min, mix, negate, node, normalLocal, normalView, normalWorld, normalize, oneMinus, operator, pointCoord, position, positionLocal, positionView, positionWorld, pow, pow2, pow3, pow4, radians, reciprocal, reflect, refract, replace, round, sampleIndex, sampleMask, saturate, screenCoordinate, screenUV, select, sig, sign, sin, smoothstep, sqrt, step, swizzle, tan, texture, textureSize, toVar, transformDirection, trunc, uint, uniform, uvec2, uvec3, uvec4, variable, varying, vec2, vec3, vec4, vertex, vertexIndex, webgl, webgpu } from './index.cjs';
|
|
4
|
-
export { Frame, Fun, Queue } from 'refr';
|
|
5
|
-
|
|
6
|
-
declare const useGL: (props?: Partial<GL>) => reev.EventState<GL>;
|
|
7
|
-
|
|
8
|
-
export { GL, useGL };
|
package/dist/solid.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as reev from 'reev';
|
|
2
|
-
import { GL } from './index.cjs';
|
|
3
|
-
export { ADDITIONAL_FUNCTIONS, Attribute, Attributes, BOOL_RETURN_FUNCTIONS, BUILTIN_TYPES, COMPARISON_OPERATORS, COMPONENT_COUNT_TO_TYPE, CONSTANTS, CONVERSIONS, Constants, Conversions, FIRST_ARG_TYPE_FUNCTIONS, FUNCTIONS, Fn, FnLayout, Functions, GLClearMode, GLDrawMode, GLDrawType, GPUBindGroup, GPUBuffer, GPUContext, GPUDevice, GPUPipeline, HIGHEST_TYPE_FUNCTIONS, If, LOGICAL_OPERATORS, Loop, NodeConfig, NodeProps, NodeProxy, NodeTypes, OPERATORS, OPERATOR_KEYS, Operators, PRESERVE_TYPE_FUNCTIONS, PrecisionMode, SCALAR_RETURN_FUNCTIONS, SWIZZLES, Switch, Swizzles, TYPE_MAPPING, Uniform, Uniforms, VEC3_RETURN_FUNCTIONS, VEC4_RETURN_FUNCTIONS, WGSL_TO_GLSL_BUILTIN, WebGLState, WebGPUState, X, abs, acos, alignTo256, all, any, asin, assign, atan, atan2, attribute, bitcast, bool, builtin, bvec2, bvec3, bvec4, cbrt, ceil, clamp, code, color, constant, conversion, conversionToConstant, cos, createAttrib, createBindGroup, createBufferLayout, createDescriptor, createDevice, default as createGL, createIbo, createPipeline, createProgram, createTexture, createTextureSampler, createUniformBuffer, createVbo, createVertexBuffer, cross, cubeTexture, dFdx, dFdy, defaultFragmentGLSL, defaultVertexGLSL, degrees, difference, dig, distance, dot, each, equals, exp, exp2, ext, faceforward, fig, float, floor, flush, formatConversions, fract, fragDepth, fragment, frontFacing, function_, fwidth, generateDefine, getBluiltin, getId, getOperator, getStride, hex2rgb, iMouse, iResolution, iTime, infer, inferImpl, instanceIndex, int, inverseSqrt, is, isConversion, isFunction, isGL, isNodeProxy, isOperator, isServer, isSwizzle, isWebGPUSupported, ivec2, ivec3, ivec4, joins, length, lengthSq, log, log2, mat2, mat3, mat4, max, min, mix, negate, node, normalLocal, normalView, normalWorld, normalize, oneMinus, operator, pointCoord, position, positionLocal, positionView, positionWorld, pow, pow2, pow3, pow4, radians, reciprocal, reflect, refract, replace, round, sampleIndex, sampleMask, saturate, screenCoordinate, screenUV, select, sig, sign, sin, smoothstep, sqrt, step, swizzle, tan, texture, textureSize, toVar, transformDirection, trunc, uint, uniform, uvec2, uvec3, uvec4, variable, varying, vec2, vec3, vec4, vertex, vertexIndex, webgl, webgpu } from './index.cjs';
|
|
4
|
-
export { Frame, Fun, Queue } from 'refr';
|
|
5
|
-
|
|
6
|
-
declare const onGL: (props?: Partial<GL>) => reev.EventState<GL>;
|
|
7
|
-
|
|
8
|
-
export { GL, onGL };
|