glre 0.40.0 → 0.41.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/addons.cjs +1 -1
- package/dist/addons.cjs.map +1 -1
- package/dist/addons.d.ts +4 -3
- package/dist/addons.js +1 -1
- package/dist/addons.js.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/native.d.ts +12 -11
- package/dist/node.cjs +16 -16
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +5 -4
- package/dist/node.js +15 -15
- package/dist/node.js.map +1 -1
- package/dist/react.d.ts +9 -8
- package/dist/solid.d.ts +9 -8
- package/package.json +1 -1
- package/src/node/scope.ts +3 -2
- package/src/node/types.ts +1 -1
- package/src/node/utils/index.ts +2 -1
- package/src/node/utils/infer.ts +2 -1
- package/src/node/utils/utils.ts +6 -11
- package/src/types.ts +4 -3
- package/src/utils/helpers.ts +25 -8
- package/src/utils/program.ts +11 -4
- package/src/utils/webgl.ts +7 -3
- package/src/utils/webgpu.ts +12 -4
package/dist/addons.d.ts
CHANGED
|
@@ -123,10 +123,10 @@ type GL = EventState<{
|
|
|
123
123
|
uniform(target: {
|
|
124
124
|
[key: string]: Uniform;
|
|
125
125
|
}): GL;
|
|
126
|
-
_texture?(key: string, value:
|
|
127
|
-
texture(key: string, value:
|
|
126
|
+
_texture?(key: string, value: Texture$1): GL;
|
|
127
|
+
texture(key: string, value: Texture$1): GL;
|
|
128
128
|
texture(target: {
|
|
129
|
-
[key: string]:
|
|
129
|
+
[key: string]: Texture$1;
|
|
130
130
|
}): GL;
|
|
131
131
|
_attribute?(key: string, value: Attribute, iboValue?: Attribute): GL;
|
|
132
132
|
attribute(key: string, value: Attribute, iboValue?: Attribute): GL;
|
|
@@ -145,6 +145,7 @@ type GL = EventState<{
|
|
|
145
145
|
}): GL;
|
|
146
146
|
}>;
|
|
147
147
|
type Uniform = number | number[] | Float32Array;
|
|
148
|
+
type Texture$1 = string | HTMLImageElement | HTMLVideoElement;
|
|
148
149
|
type Attribute = number[] | Float32Array;
|
|
149
150
|
type Storage = number[] | Float32Array;
|
|
150
151
|
/**
|