Skip to content

Conversation

@greggman
Copy link
Contributor

Related issue: #32903

Description

There's no reason to have a cube-array path for generateMipmaps. Compat mode does not support cube-array and core mode will always use the 2d-array path.

When I copied this code from webgpu-utils, I noticed that the code for cube-array was indexing the faceMat array by baseArrayLayer which didn't make sense to me. In the three.js PR I changed it to baseArrayLayer % 6. But then I went back and try to figure out why tests were passing in webgpu-utils. I finally realized this path is never used 😅. I deleted it there and now this PR deletes it here.

There's no reason to have a cube-array path.
Compat mode does not support cube-array and
core mode will always use the 2d-array path.
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.21
85.29
359.21
85.29
+0 B
+0 B
WebGPU 624.04
173.42
623.73
173.39
-314 B
-31 B
WebGPU Nodes 622.62
173.17
622.31
173.13
-314 B
-34 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 490.47
119.49
490.47
119.49
+0 B
+0 B
WebGPU 690.7
186.6
690.39
186.56
-314 B
-39 B
WebGPU Nodes 640.08
174
639.77
173.97
-314 B
-38 B

@Mugen87 Mugen87 merged commit 6026174 into mrdoob:dev Feb 1, 2026
10 checks passed
@Mugen87 Mugen87 added this to the r183 milestone Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants