Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ const pipeline = root['~unstable']
// Plugging the cache into the pipeline
.pipe(cache.inject())
// ...
.withCompute(main)
.createPipeline();
.createComputePipeline({ compute: main });
```
Or in WebGPU:
```ts twoslash
Expand Down Expand Up @@ -245,8 +244,7 @@ const pipeline = root['~unstable']
// Plugging the cache into the pipeline
.pipe(cacheConfig.inject(dynamicLayout.$))
// ...
.withCompute(main)
.createPipeline();
.createComputePipeline({ compute: main });

// Instantiating the cache with an initial size.
const cache = cacheConfig.instance(root, d.vec3u(10, 10, 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,11 @@ const mainFragment = tgpu['~unstable'].fragmentFn({
out: d.vec4f,
})``;
// ---cut---
const pipeline = root['~unstable']
.withVertex(mainVertex, {})
.withFragment(mainFragment, { format: presentationFormat })
.createPipeline();
const pipeline = root['~unstable'].createRenderPipeline({
vertex: mainVertex,
fragment: mainFragment,
targets: { format: presentationFormat },
});

pipeline
.withColorAttachment({
Expand Down
Loading
Loading