Skip to content

Commit 369b6bd

Browse files
committed
resolveWithContext used in docs
1 parent 8e01416 commit 369b6bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/typegpu-docs/src/content/docs/ecosystem/typegpu-noise.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const main = tgpu['~unstable'].fn([])(() => {
145145
});
146146
```
147147
Or in WebGPU:
148-
```ts
148+
```ts twoslash
149149
/// <reference types="@webgpu/types" />
150150
import * as d from 'typegpu/data';
151151

@@ -157,7 +157,7 @@ import { perlin3d } from '@typegpu/noise';
157157
const root = tgpu.initFromDevice({ device });
158158
const cache = perlin3d.staticCache({ root, size: d.vec3u(10, 10, 1) });
159159

160-
const { code, layouts, catchall } = tgpu.superResolve({
160+
const { code, usedBindGroupLayouts, catchall } = tgpu.resolveWithContext({
161161
template: `
162162
fn main() {
163163
let value = perlin3d.sample(vec3f(0.5, 0., 0.));

0 commit comments

Comments
 (0)