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!


And it can now run three.js too!

---------
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
2025-07-09 14:22:03 +00:00
Samson
5853c00628
Remove message from WebGL subtest name and remove stale expectations ( #35791 )
...
* Remove message from WebGL subtest name
This causes stale expectations: https://github.com/servo/servo/issues/35750
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-03-12 09:08:39 +00:00
Josh Matthews
c43762faea
Add initial support for WebGL 2 BlitFramebuffer ( #26389 )
...
Add initial support for the WebGL2 BlitFramebuffer call.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Istvan <istvan.miklos@h-lab.eu>
2025-01-06 18:37:35 +00:00
Samson
063071ba72
Replace sparkle
with glow
in components/canvas
( #33918 )
...
* Replace sparkle with glow in components/canvas
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Replace safe_gl with #34300
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-11-20 09:05:24 +00:00
Josh Matthews
5d1d3d6b5a
Update webgl conformance tests ( #33121 )
...
* Update python -> python3 for helper script.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Update webgl conformance testsuite patches.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Import WebGL conformance testsuite for August 19, 2024.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Update expected results.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Track the commit used for webgl conformance test import.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-11-04 04:27:29 +00:00
Martin Robinson
1e503c3bc1
wpt: Update some tests results ( #31364 )
...
This test has started failing on CI for some reason.
2024-02-16 09:37:47 +00:00
Paulo E. Castro
03b3d677f0
Amend test expectations.
2021-04-28 22:31:36 +01:00
Gregory Terzian
59896748b5
blockingly shut-down webrender when exiting webgl_thread
2020-06-17 13:47:13 +08:00
Mátyás Mustoha
a90f034976
Fix InvalidateSubFramebuffer error handling
...
The WebGL2 InvalidateSubFramebuffer function should generate
INVALID_VALUE when width or height is negative.
2020-04-22 12:45:56 +02:00
Alan Jeffrey
8bb1732258
Update surfman to 0.2 and remove glutin
2020-04-17 23:44:53 -05:00
Mátyás Mustoha
a6359fe587
Do not try to read pixels from an FBO without read buffer
...
Adds another check to the WebGL2 ReadPixels implementation to fix
an OpenGL invalid operation crash when the method is called on a
bound framebuffer that has no read buffer.
2020-03-17 10:55:41 +01:00
Mátyás Mustoha
0afe27ef18
Add support for WebGL2 read and draw buffer settings
...
Adds support for the `ReadBuffer` and `DrawBuffers`
WebGL2 calls and the related parameter getters.
See:
- https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
- https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
- https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
2020-03-16 12:17:15 +01:00
Mátyás Mustoha
5eaa9ef8cb
Add support for some more WebGL2 renderbuffer functions
...
Adds support for the following WebGL2 calls:
- `RenderbufferStorageMultisample`
- `GetInternalFormativ`
See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.5
2020-03-13 13:43:30 -04:00
Mátyás Mustoha
859a3a4924
Allow more WebGL2 FBO attachment formats
...
Add support for most of the framebuffer attachment formats
introduced in WebGL2 for textures and renderbuffers.
Related format tables:
- https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
- https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glRenderbufferStorage.xhtml
2020-03-03 14:50:48 +01:00
Mátyás Mustoha
d5d0a788e3
Add support for WebGL2 getFramebufferAttachmentParameter
...
Implements the WebGL2 variant of `getFramebufferAttachmentParameter`
and the related parameter checks.
See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
2020-02-21 17:30:03 +01:00
Mátyás Mustoha
b41805a920
Add support for WebGL2 framebuffer attachments
...
Adds an initial implementation for the framebuffer attachments
introduced with WebGL2 and the related enums and constrains checks.
2020-02-21 11:04:30 +01:00
Mátyás Mustoha
796ee70597
Add initial support for WebGL2 read framebuffer
...
Adds support for binding to the read framebuffer slot and querying
its status.
2020-02-14 12:10:16 +01:00
Mátyás Mustoha
833485887e
Add support for WebGL2 MAX_COLOR_ATTACHMENTS
and MAX_DRAW_BUFFERS
...
Adds support for using the WebGL2 enums `MAX_COLOR_ATTACHMENTS` and
`MAX_DRAW_BUFFERS` with `GetParameter`.
See https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
2020-02-14 11:03:28 +01:00
Anthony Ramine
9db1a5cd0b
Update some outdated WebGL expectations
2018-09-13 22:04:29 +02:00
Josh Matthews
b8ee62e67b
webgl: Update test results for newly-exposed missing checks.
2018-09-10 16:31:32 -04:00
Josh Matthews
d179435eab
webgl: Ensure that framebuffers have a color attachment before reading or writing.
2018-09-10 15:56:15 -04:00
Anthony Ramine
26a311fc62
Use sdk/tests when syncing from upstream Khronos WebGL tests
2018-08-25 13:34:53 +02:00
Anthony Ramine
4852f7d616
Move Khronos WebGL tests to /_webgl/
2018-08-25 03:43:32 +02:00