typegpu 0.11.0 → 0.11.1
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/data/array.d.ts +2 -1
- package/package.js +1 -1
- package/package.json +1 -1
package/data/array.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyWgslData, WgslArray } from "./wgslTypes.js";
|
|
2
2
|
import { TgpuComptime } from "../core/function/comptime.js";
|
|
3
|
+
|
|
3
4
|
//#region src/data/array.d.ts
|
|
4
5
|
interface WgslArrayConstructor {
|
|
5
6
|
<TElement extends AnyWgslData>(elementType: TElement): (elementCount: number) => WgslArray<TElement>;
|
|
@@ -21,6 +22,6 @@ interface WgslArrayConstructor {
|
|
|
21
22
|
* @param elementType The type of elements in the array.
|
|
22
23
|
* @param elementCount The number of elements in the array.
|
|
23
24
|
*/
|
|
24
|
-
declare const arrayOf: TgpuComptime
|
|
25
|
+
declare const arrayOf: TgpuComptime<WgslArrayConstructor>;
|
|
25
26
|
//#endregion
|
|
26
27
|
export { arrayOf };
|
package/package.js
CHANGED