Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge fixes
  • Loading branch information
Aleksander Katan committed Aug 12, 2025
commit 071acf3554d26c72c4de684d7ff0bbeb718be6ea
13 changes: 0 additions & 13 deletions apps/typegpu-docs/src/content/docs/fundamentals/data-schemas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -343,19 +343,6 @@ const array = ArrayPartialSchema(2)([1.2, 19.29]);
// ^?
```

You can also call `d.arrayOf` without specifying the array length. This returns a partially applied schema function, allowing you to provide the length later or use the schema to declare WGSL [runtime-sized arrays](/TypeGPU/fundamentals/bind-groups#runtime-sized-example).

```ts twoslash
import * as d from 'typegpu/data';

// ---cut---
const ArrayPartialSchema = d.arrayOf(d.f32);
// ^?

const array = ArrayPartialSchema(2)([1.2, 19.29]);
// ^?
```

## Atomics

To create a schema corresponding to an atomic data type, wrap `d.i32` or `d.u32` with `d.atomic`.
Expand Down