servo/components/script/dom/webgl_validations
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
..
mod.rs WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00
tex_image_2d.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
tex_image_3d.rs WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00
types.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00