Skip to content

StorageTexture: Add width and height getters #31506

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

Closed
wants to merge 1 commit into from

Conversation

gkjohnson
Copy link
Collaborator

Related issue: --

Description

Adds "width" and "height" convenience getters for Storage texture to map Texture and RenderTarget.

@gkjohnson gkjohnson added this to the r179 milestone Jul 25, 2025
@gkjohnson gkjohnson requested a review from sunag July 25, 2025 22:38
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.37
78.9
338.37
78.9
+0 B
+0 B
WebGPU 561.4
155.29
561.48
155.31
+74 B
+20 B
WebGPU Nodes 560.01
155.05
560.09
155.07
+74 B
+18 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 469.75
113.6
469.75
113.6
+0 B
+0 B
WebGPU 636.14
172.14
636.14
172.14
+0 B
+0 B
WebGPU Nodes 590.79
161.38
590.79
161.38
+0 B
+0 B

@sunag
Copy link
Collaborator

sunag commented Jul 26, 2025

It wouldn't be redundant with #31025?

@gkjohnson
Copy link
Collaborator Author

You're right! I missed that it was already supported, I guess.

@gkjohnson gkjohnson closed this Jul 26, 2025
@gkjohnson gkjohnson deleted the storage-texture-getters branch July 26, 2025 03:11
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