Skip to content

Texture: Introduce width, height, depth#31025

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-texture-width-height
Apr 29, 2025
Merged

Texture: Introduce width, height, depth#31025
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-texture-width-height

Conversation

@sunag

@sunag sunag commented Apr 29, 2025

Copy link
Copy Markdown
Collaborator

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
@github-actions

Copy link
Copy Markdown

📦 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
@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