Mátyás Mustoha
4050b7f9ec
Implement the basic WebGL2 buffer data operations
...
Adds support for `bufferData`, `bufferSubData`, `copyBufferSubData`
and `getBufferSubData`.
Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.3
2019-11-05 11:33:13 +01:00
Patrick Walton
a358bca766
Use surfman for managing GL surfaces
...
Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com>
Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2019-11-01 08:47:11 -05:00
Mátyás Mustoha
26df1962c3
Add WebGLSampler support
...
Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
2019-10-08 16:21:43 +02:00
Istvan Miklos
248545ddda
Initial implementation of WebGLSync
...
This patch adds initial support for WebGLSync.
Note:
There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`.
2019-10-02 12:51:32 +02:00
Mátyás Mustoha
f2e2b3d34b
Initial implementation of WebGLQueries
...
This patch adds initial support for WeGLQueries. Most related WebGL
functions and objects are implemented [1]. What's still missing is
the `EXT_disjoint_timer_query_webgl2` support.
[1]: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.12
2019-10-01 12:30:24 +02:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
Emilio Cobos Álvarez
3d57c22e9c
Update euclid.
...
There are a few canvas2d-related dependencies that haven't updated, but they
only use euclid internally so that's not blocking landing the rest of the
changes.
Given the size of this patch, I think it's useful to get this landed as-is.
2019-07-23 23:09:55 +02:00
Josh Matthews
3121f42d52
Remove offscreen_gl_context dependency from canvas_traits and script.
2019-03-07 09:27:36 -05:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Anthony Ramine
a3392610c3
Make HTMLCanvasElement::get_size return a Size2D<u32>
...
The changes keep trickling down.
2018-10-02 14:21:06 +02:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Anthony Ramine
0579fbe4fa
Use WebGLResult for returns of instanced draw methods
2018-09-06 10:41:58 +02:00
Anthony Ramine
900a19058e
Support unions of objects in overloads
...
Part of #20513 , implementing the parts useful for WebGL.
2018-08-30 16:15:40 +02:00
Anthony Ramine
3e8c2d659a
Implement gl.getUniform()
2018-07-18 21:37:41 +02:00
Anthony Ramine
4e6eea221a
Implement instanced WebGL drawing calls (part of #20791 )
2018-07-08 10:44:45 +02:00
Anthony Ramine
0e2e834d18
Fix gl.linkProgram() signature
2018-07-05 14:20:47 +02:00
Fausto Núñez Alberro
58760d91d1
Implement WebGL GetRenderbufferParameter
...
This needed a bump of gleam to version 0.4.33
2018-04-24 18:16:51 +02:00
Anthony Ramine
bb2b6a7a41
Fix the signature of WebGLRenderingContext::BufferSubData
2018-04-04 13:12:42 +02:00
Anthony Ramine
866a523914
Properly use Float32List and Int32List for WebGL uniform methods
2018-04-03 12:22:32 +02:00
Anthony Ramine
088ebcb095
Remove obsolete BufferDataSource
2018-04-03 11:15:54 +02:00
Anthony Ramine
a62bed82e4
Implement WebGLRenderingContextBase.getAttachedShaders
2018-03-24 13:58:07 +01:00
Igor Matuszewski
daceeb4002
Appease test-tidy
2018-03-23 19:25:19 +01:00
Igor Matuszewski
20f21cb5f8
Adapt uniform[fv] and similar to accept typed array args
2018-03-23 19:25:19 +01:00
Igor Matuszewski
36f39ce27a
Change WebGL function signatures accepting typed arrays
2018-03-23 19:25:19 +01:00
Anthony Ramine
8061d8c3d2
Fix some more WebGL methods
2018-03-23 01:23:39 +01:00
Anthony Ramine
f532e79dc1
Make some WebGL parameters non-optional ( fixes #8753 )
...
Those parameters aren't optional in the current spec.
The test element-array-buffer-delete-recreate.html now fails because we don't
actually implement gl.getParameter(gl.CURRENT_PROGRAM).
2018-03-22 19:17:35 +01:00
Igor Gutorov
ee5bdbbd8b
Implement WebGL getFramebufferAttachmentParameter API
2018-03-22 18:26:18 +02:00
Martina Kollarova
288ef50fb7
Add WebGL function glGetTexParameter
...
Set the expected result of the test `tex-input-validation.html` to CRASH, since
that is caused by unrelated problems. The test was previously not executing
completely, because it stopped when it didn't find the implementation of
getTexParameter.
2018-03-06 15:28:10 +02:00
Simon Sapin
52eda6082f
Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>
2018-01-22 17:41:25 +01:00
Imanol Fernandez
ec1f61d9cc
Add configuration for webgl2 tests and update test expectations
2017-11-02 15:12:35 +01:00
Imanol Fernandez
ddd6c86e99
Kick off WebGL 2.0 implementation
2017-10-27 12:53:11 +02:00