Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WebGL2 clear buffer operations #25789

Merged
merged 1 commit into from Feb 24, 2020

Conversation

@mmatyas
Copy link
Contributor

mmatyas commented Feb 18, 2020

Adds support for the following WebGL2 methods:

  • clearBufferfv
  • clearBufferiv
  • clearBufferuiv
  • clearBufferfi

See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11

cc @jdm @zakorgy

Note: While the code itself doesn't depend on any other PRs, some of the tests do require WebGL2 framebuffer/renderbuffer support (#25785).


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes
@highfive
Copy link

highfive commented Feb 18, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webidls/WebGL2RenderingContext.webidl, components/script/dom/webgl2renderingcontext.rs
  • @jgraham: tests/wpt/webgl/meta/conformance2/context/methods-2.html.ini, tests/wpt/webgl/meta/conformance2/rendering/clearbuffer-sub-source.html.ini, tests/wpt/webgl/meta/conformance2/rendering/clearbufferfv-with-alpha-false.html.ini, tests/wpt/webgl/meta/conformance2/rendering/clear-srgb-color-buffer.html.ini
  • @KiChjang: components/script/dom/webidls/WebGL2RenderingContext.webidl, components/script/dom/webgl2renderingcontext.rs
components/script/dom/webgl2renderingcontext.rs Outdated Show resolved Hide resolved
@mmatyas mmatyas force-pushed the szeged:mmatyas__webgl_fns_clearbuffer branch from 91958a8 to 7cf87ed Feb 21, 2020
@jdm
jdm approved these changes Feb 21, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Feb 21, 2020

The latest upstream changes (presumably #25784) made this pull request unmergeable. Please resolve the merge conflicts.

@jdm
Copy link
Member

jdm commented Feb 21, 2020

This can merge after a rebase.

Adds support for the following WebGL2 methods:

- `clearBufferfv`
- `clearBufferiv`
- `clearBufferuiv`
- `clearBufferfi`

See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
@mmatyas mmatyas force-pushed the szeged:mmatyas__webgl_fns_clearbuffer branch from 7cf87ed to 8701d45 Feb 24, 2020
@mmatyas
Copy link
Contributor Author

mmatyas commented Feb 24, 2020

Rebased and regenerated the tests.

@jdm
Copy link
Member

jdm commented Feb 24, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 24, 2020

📌 Commit 8701d45 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 24, 2020

Testing commit 8701d45 with merge 6aacc90...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 24, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 6aacc90 to master...

@bors-servo bors-servo merged commit 6aacc90 into servo:master Feb 24, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.