Skip to content
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

Bring back 3d functionality for copyTextureToTexture #30584

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

zonkypop
Copy link
Contributor

@zonkypop zonkypop commented Feb 22, 2025

Description

In the WebGLBackend, copyTextureToTexture has only implemented copying for 2D textures. This PR cut and pastes some of the code from the main GL renderer to bring back some functionality.

Copy link

github-actions bot commented Feb 22, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.65
78.39
336.65
78.39
+0 B
+0 B
WebGPU 522.37
144.98
522.75
145.11
+385 B
+133 B
WebGPU Nodes 521.83
144.88
522.22
145.01
+385 B
+133 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.7
112.26
465.7
112.26
+0 B
+0 B
WebGPU 592.8
160.61
593.18
160.74
+385 B
+130 B
WebGPU Nodes 547.93
150.06
548.31
150.19
+385 B
+131 B

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