aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl2renderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+2
|
* Auto merge of #25545 - szeged:mmatyas__webgl_fns_versions, r=jdmbors-servo2020-01-171-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WebGL2 specific version strings Updated the `VERSION` and `SHADING_LANGUAGE_VERSION` WebGL parameters to report the correct version strings when WebGL2 is in use. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy @imiklos --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Add WebGL2 specific version stringsMátyás Mustoha2020-01-171-0/+10
| | | | | | | | | | | | | | Updated the `VERSION` and `SHADING_LANGUAGE_VERSION` WebGL parameters to report the correct version strings when WebGL2 is in use. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
* | Auto merge of #25543 - szeged:mmatyas__webgl_fns_uniforms_p3, r=jdmbors-servo2020-01-171-4/+217
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 uniform matrix operations Adds support for the `uniformMatrix[234]x[234]fv` WebGL2 functions. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8 <!-- Please describe your changes on the following line: --> Note: Similarly to #25538, some of the functions here also overlap with their WebGL 1 variant. cc @jdm @zakorgy @imiklos --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * | Add support for WebGL2 uniform matrix operationsMátyás Mustoha2020-01-171-4/+217
| |/ | | | | | | | | | | Adds support for the `uniformMatrix[234]x[234]fv` WebGL2 functions. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8
* | Auto merge of #25538 - szeged:mmatyas__webgl_fns_uniforms_p2, r=jdmbors-servo2020-01-161-46/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 uniform array operations Adds support for the WebGL2 overloads of `uniform[1234][if]v`. <!-- Please describe your changes on the following line: --> WebGL2 adds two optional parameters for the `uniform[1234][if]v` functions to allow specifying input data ranges. However, because they have the same name and overlapping parameters, the Codegen cannot make a difference between their GL1 and 2 variants. As a workaround, I've added the new parameters to the WebGL1 side, which which isn't strictly what the spec says, but shouldn't break things either. (Note: Firefox devs also run into this issue: [[1](https://searchfox.org/mozilla-central/source/dom/webidl/WebGLRenderingContext.webidl#794), [2](https://bugzilla.mozilla.org/show_bug.cgi?id=1324543)]). cc @jdm @zakorgy @imiklos --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Add support for WebGL2 uniform array operationsMátyás Mustoha2020-01-161-46/+51
| | | | | | | | Adds support for the WebGL2 overloads of `uniform[1234][if]v`.
* | Auto merge of #25519 - szeged:mmatyas__webgl_fns_uniforms, r=jdmbors-servo2020-01-151-4/+222
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 unsigned uniform operations This adds support for the WebGL2 `uniform[1234]ui` and `uniform[1234]uiv` operations. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8 <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy @imiklos --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Add support for WebGL2 unsigned uniform operationsMátyás Mustoha2020-01-151-4/+222
| | | | | | | | | | | | | | This adds support for the WebGL2 `uniform[1234]ui` and `uniform[1234]uiv` operations. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8
* | Add support for WebGL2 `RASTERIZER_DISCARD` enum.Mátyás Mustoha2020-01-141-4/+21
|/ | | | | | | Add support for the `RASTERIZER_DISCARD` enum for the WebGL2 version of the `Enable`, `Disable` and `IsEnabled` functions. See https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
* Add initial support for WebGL2 uniform buffer functionsMátyás Mustoha2020-01-091-15/+342
| | | | | | | | | | | | | | | Adds initial support for the following WebGL2 calls: - bindBufferBase - bindBufferRange - getUniformIndices - getUniformBlockIndex - getActiveUniforms - getActiveUniformBlockParameter - getActiveUniformBlockName - uniformBlockBinding See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.16
* Add support for WebGL2 ReadPixels functionsMátyás Mustoha2019-11-261-7/+360
| | | | | | | Adds support for the new ReadPixels functions introduced with WebGL2 and the relevant PixelStorei parameters. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.10
* Add Support for WebGL TransormfeedbackIstvan Miklos2019-11-081-2/+232
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.15
* Implement the basic WebGL2 buffer data operationsMátyás Mustoha2019-11-051-8/+309
| | | | | | | Adds support for `bufferData`, `bufferSubData`, `copyBufferSubData` and `getBufferSubData`. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.3
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-1/+1
| | | | | | 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>
* Add WebGLSampler supportMátyás Mustoha2019-10-081-1/+100
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
* Initial implementation of WebGLSyncIstvan Miklos2019-10-021-4/+128
| | | | | | | 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`.
* Initial implementation of WebGLQueriesMátyás Mustoha2019-10-011-2/+155
| | | | | | | | 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
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-42/+15
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-1/+1
| | | | | | | | 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.
* Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-2/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-2/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-25/+25
|
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-3/+3
| | | | The changes keep trickling down.
* Format script componentchansuke2018-09-191-145/+228
|
* Use WebGLResult for returns of instanced draw methodsAnthony Ramine2018-09-061-2/+8
|
* Support unions of objects in overloadsAnthony Ramine2018-08-301-4/+8
| | | | Part of #20513, implementing the parts useful for WebGL.
* Implement gl.getUniform()Anthony Ramine2018-07-181-0/+11
|
* Implement instanced WebGL drawing calls (part of #20791)Anthony Ramine2018-07-081-0/+28
|
* Fix gl.linkProgram() signatureAnthony Ramine2018-07-051-1/+1
|
* Implement WebGL GetRenderbufferParameterFausto Núñez Alberro2018-04-241-0/+11
| | | | This needed a bump of gleam to version 0.4.33
* Fix the signature of WebGLRenderingContext::BufferSubDataAnthony Ramine2018-04-041-1/+1
|
* Properly use Float32List and Int32List for WebGL uniform methodsAnthony Ramine2018-04-031-124/+68
|
* Remove obsolete BufferDataSourceAnthony Ramine2018-04-031-2/+2
|
* Implement WebGLRenderingContextBase.getAttachedShadersAnthony Ramine2018-03-241-0/+8
|
* Appease test-tidyIgor Matuszewski2018-03-231-1/+2
|
* Adapt uniform[fv] and similar to accept typed array argsIgor Matuszewski2018-03-231-95/+147
|
* Change WebGL function signatures accepting typed arraysIgor Matuszewski2018-03-231-42/+38
|
* Fix some more WebGL methodsAnthony Ramine2018-03-231-4/+3
|
* Make some WebGL parameters non-optional (fixes #8753)Anthony Ramine2018-03-221-31/+36
| | | | | | | 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).
* Implement WebGL getFramebufferAttachmentParameter APIIgor Gutorov2018-03-221-0/+12
|
* Add WebGL function glGetTexParameterMartina Kollarova2018-03-061-0/+6
| | | | | | | 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.
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-2/+2
|
* Add configuration for webgl2 tests and update test expectationsImanol Fernandez2017-11-021-1/+2
|
* Kick off WebGL 2.0 implementationImanol Fernandez2017-10-271-0/+914