Skip to content

Commit 099557e

Browse files
committed
Merge branch '0.11'
2 parents 0fa88ae + a032991 commit 099557e

4 files changed

Lines changed: 258 additions & 23 deletions

File tree

packages/typegpu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typegpu",
3-
"version": "0.11.0",
3+
"version": "0.11.1-rc.1",
44
"description": "A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.",
55
"keywords": [
66
"compute",

packages/typegpu/src/data/array.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { comptime } from '../core/function/comptime.ts';
1+
import { comptime, type TgpuComptime } from '../core/function/comptime.ts';
22
import { $internal } from '../shared/symbols.ts';
33
import { schemaCallWrapper } from './schemaCallWrapper.ts';
44
import { sizeOf } from './sizeOf.ts';
@@ -32,7 +32,10 @@ interface WgslArrayConstructor {
3232
* @param elementType The type of elements in the array.
3333
* @param elementCount The number of elements in the array.
3434
*/
35-
export const arrayOf = comptime(((elementType, elementCount) => {
35+
export const arrayOf: TgpuComptime<WgslArrayConstructor> = comptime(((
36+
elementType,
37+
elementCount,
38+
) => {
3639
if (elementCount === undefined) {
3740
return comptime((count: number) => cpu_arrayOf(elementType, count));
3841
}

0 commit comments

Comments
 (0)