diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-03-04 08:20:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 08:20:52 -0500 |
commit | 301980c840237b19c609eb4155f15b25a5928b04 (patch) | |
tree | 10e60c9ee0869f63b349c3e5b401e572ad697896 /components/canvas_traits/webgl.rs | |
parent | 61cf25c98ae73f5c1d9c7fac7dd02f83dbfeb703 (diff) | |
parent | 8389189d943dfd5b404401ae41e73da71ec774be (diff) | |
download | servo-301980c840237b19c609eb4155f15b25a5928b04.tar.gz servo-301980c840237b19c609eb4155f15b25a5928b04.zip |
Auto merge of #25814 - szeged:mmatyas__webgl_fns_framebuf_texlayer, r=jdm
Add support for WebGL2 FramebufferTextureLayer
Adds support for `FramebufferTextureLayer` WebGL2 call.
See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
<!-- Please describe your changes on the following line: -->
Depends on #25798.
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. -->
Diffstat (limited to 'components/canvas_traits/webgl.rs')
-rw-r--r-- | components/canvas_traits/webgl.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/canvas_traits/webgl.rs b/components/canvas_traits/webgl.rs index 8b689f6da10..22e47ad9bb4 100644 --- a/components/canvas_traits/webgl.rs +++ b/components/canvas_traits/webgl.rs @@ -535,6 +535,7 @@ pub enum WebGLCommand { ClearBufferfi(u32, i32, f32, i32), InvalidateFramebuffer(u32, Vec<u32>), InvalidateSubFramebuffer(u32, Vec<u32>, i32, i32, i32, i32), + FramebufferTextureLayer(u32, u32, Option<WebGLTextureId>, i32, i32), } macro_rules! nonzero_type { @@ -1074,5 +1075,7 @@ pub struct GLLimits { pub max_vertex_uniform_components: u32, pub max_fragment_uniform_blocks: u32, pub max_fragment_uniform_components: u32, + pub max_3d_texture_size: u32, + pub max_array_texture_layers: u32, pub uniform_buffer_offset_alignment: u32, } |