Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for some more WebGL2 renderbuffer functions #25904
Conversation
highfive
commented
Mar 5, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 5, 2020
25acfcc
to
807b5d9
|
Good start! |
| target, | ||
| internal_format, | ||
| param, | ||
| max_count, |
This comment has been minimized.
This comment has been minimized.
jdm
Mar 5, 2020
Member
Rather than having the caller pass the size of the parameter array, we should match on the param and calculate how large the array should be.
Additionally, rather than having the script thread send two commands to retrieve the sample count followed by the samples, we should transparently get the number of required samples when handling the request for samples.
| @@ -221,24 +223,46 @@ impl WebGLRenderbuffer { | |||
| _ => return Err(WebGLError::InvalidEnum), | |||
| }; | |||
|
|
|||
| let (sender, receiver) = webgl_channel().unwrap(); | |||
This comment has been minimized.
This comment has been minimized.
| .send_command(WebGLCommand::GetInternalFormativ( | ||
| constants::RENDERBUFFER, | ||
| internal_format, | ||
| InternalFormatInt::Samples, |
This comment has been minimized.
This comment has been minimized.
807b5d9
to
b8ac3e7
|
Thanks! Updated the code, but then I ran into #25908 so couldn't check if it affects the tests yet. |
|
@bors-servo try=wpt |
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 <!-- Please describe your changes on the following line: --> The test results depend on #25903. cc @jdm @zakorgy --- <!-- 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. -->
|
|
There are also different |
|
|
b8ac3e7
to
ad7a97e
|
Rebased and run the tests again. I don't encounter crashes locally, hopefully the CI will now pass too. |
|
@bors-servo try=wpt |
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 <!-- Please describe your changes on the following line: --> The test results depend on #25903. cc @jdm @zakorgy --- <!-- 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. -->
b6aa8c4
to
6cdbab5
|
@bors-servo r+ |
|
|
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 <!-- Please describe your changes on the following line: --> The test results depend on #25903. cc @jdm @zakorgy --- <!-- 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. -->
|
|
|
@bors-servo retry |
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 <!-- Please describe your changes on the following line: --> The test results depend on #25903. cc @jdm @zakorgy --- <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
mmatyas commentedMar 5, 2020
Adds support for the following WebGL2 calls:
RenderbufferStorageMultisampleGetInternalFormativSee: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.5
The test results depend on #25903.
cc @jdm @zakorgy
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors