Skip to content

Commit

Permalink
fix(core): clear color in render pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
JMBeresford committed Jan 24, 2024
1 parent 7a66957 commit 631ecc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-impalas-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@webgpu-kit/core": patch
---

fix(core): clear color in render pipelines
4 changes: 4 additions & 0 deletions packages/core/src/Pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export class RenderPipeline extends components {
this.setOnAfterPass(options.onAfterPass);
}

if (options.clearColor) {
this.setClearColor(options.clearColor);
}

this.pipelineDescriptor = new RenderPipelineDescriptor({
shader: options.shader,
multisample: options.enableMultiSampling,
Expand Down

0 comments on commit 631ecc7

Please sign in to comment.