You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`root.beginRenderPass` is an *unstable* feature. The API may be subject to change in the near future.
405
+
:::
406
+
407
407
The higher-level API has several limitations, therefore another way of executing pipelines is exposed, for some custom, more demanding scenarios. For example, with the high-level API, it is not possible to execute multiple pipelines per one render pass. It also may be missing some more niche features of the WebGPU API.
408
408
409
409
`root['~unstable'].beginRenderPass` is a method that mirrors the WebGPU API, but enriches it with a direct TypeGPU resource support.
Copy file name to clipboardExpand all lines: apps/typegpu-docs/src/content/docs/fundamentals/resolve.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ Sometimes, it may not be clear which bind group layouts were used in a given res
258
258
This may occur especially when using:
259
259
260
260
- Buffer usages/shorthands, which use a hidden, automatically created "catchall" bind group,
261
-
- TypeGPU functions implemented in TGSL, which generate their externals automatically.
261
+
- TypeGPU functions implemented in JavaScript/TypeScript, which generate their externals automatically.
262
262
263
263
For these cases, you can use `tgpu.resolveWithContext`, which has the same input API as `tgpu.resolve`, but in addition to the resolved code, it also returns information about the layouts used. `tgpu.resolveWithContext` returns an object with 3 props:
264
264
@@ -290,7 +290,7 @@ console.log(catchall?.[0]); // 0 - the group index of the catchall bind group
290
290
console.log(catchall?.[1]); // the catchall bind group
291
291
```
292
292
293
-
An example, where a bind group layout is automatically included via a TGSL function:
293
+
An example, where a bind group layout is automatically included via a TypeScript function:
Copy file name to clipboardExpand all lines: apps/typegpu-docs/src/content/docs/integration/react-native/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ npm i --save-dev @webgpu/types
59
59
}
60
60
```
61
61
62
-
If you want to be able to use the TGSL functions feature of TypeGPU (JS functions transpiled to WGSL), you need to install the [unplugin-typegpu](https://www.npmjs.com/package/unplugin-typegpu) package.
62
+
If you want to be able to implement TypeGPU functions in JavaScript/TypeScript, you need to install the [unplugin-typegpu](https://www.npmjs.com/package/unplugin-typegpu) package.
0 commit comments