Skip to content

Commit 3fd2561

Browse files
committed
WebGPURenderer: Clean up.
1 parent 1e36728 commit 3fd2561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ class WebGPURenderPipelines {
1010
this.bindings = bindings;
1111

1212
this.pipelines = new WeakMap();
13+
this.shaderAttributes = new WeakMap();
1314
this.shaderModules = {
1415
vertex: new WeakMap(),
1516
fragment: new WeakMap()
1617
};
1718

18-
this.shaderAttributes = new WeakMap();
1919

2020
}
2121

@@ -166,6 +166,7 @@ class WebGPURenderPipelines {
166166
dispose() {
167167

168168
this.pipelines = new WeakMap();
169+
this.shaderAttributes = new WeakMap();
169170
this.shaderModules = {
170171
vertex: new WeakMap(),
171172
fragment: new WeakMap()

0 commit comments

Comments
 (0)