servo/components/shared/canvas
Ngo Iok Ui (Wu Yu Wei) 34c31ee418
WebGL2: support TexImage3D (#37718)
Add TexImage3D method to WebGL2RenderingContext

Testing: conformance2 should pass. Also it should get
http://webglsamples.org/WebGL2Samples/#texture_2d_array and
http://webglsamples.org/WebGL2Samples/#texture_3d running.
Fixes: #26511

Now Servo can run texture_2d_array and texture_3d samples!

![圖片](https://github.com/user-attachments/assets/41b87563-08b8-4db3-b503-12f3a61dbed7)

![圖片](https://github.com/user-attachments/assets/3c62a4de-35ea-488d-b2e5-00e3aed52090)

And it can now run three.js too!

![圖片](https://github.com/user-attachments/assets/d880aa92-a154-4895-aa06-b7919d1fc869)

---------

Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
2025-07-09 14:22:03 +00:00
..
canvas.rs canvas: Use snapshot in canvas backends (#37863) 2025-07-04 20:22:20 +00:00
Cargo.toml canvas: Use strum::{Display, EnumString} for canvas enums (#37670) 2025-06-24 13:03:41 +00:00
lib.rs constellation: Wait for canvas thread to shut down before shutting down system font service (#37182) 2025-05-30 11:44:16 +00:00
webgl.rs WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00