Skip to content

Texture: Introduce width, height, depth #31025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Apr 29, 2025

Related issue: #31022

Description

Introduce partial support for texture.width, texture.height and texture.depth.

@sunag sunag added this to the r177 milestone Apr 29, 2025
@sunag sunag marked this pull request as ready for review April 29, 2025 01:34
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.33
78.33
336.33
78.33
+0 B
+0 B
WebGPU 547.81
151.89
547.81
151.89
+0 B
+0 B
WebGPU Nodes 547.16
151.73
547.16
151.73
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.78
112.28
466.09
112.57
+311 B
+294 B
WebGPU 622.7
168.46
623.01
168.68
+311 B
+229 B
WebGPU Nodes 577.57
157.72
577.88
157.99
+311 B
+263 B

@sunag sunag merged commit 4a02e57 into mrdoob:dev Apr 29, 2025
12 checks passed
@sunag sunag deleted the dev-texture-width-height branch April 29, 2025 01:56
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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.

1 participant