diff options
author | Mátyás Mustoha <matyas.mustoha@h-lab.eu> | 2019-10-17 11:34:06 +0200 |
---|---|---|
committer | Mátyás Mustoha <matyas.mustoha@h-lab.eu> | 2019-11-05 11:33:13 +0100 |
commit | 4050b7f9eca4c581d100fed778fa09f21d7e09dd (patch) | |
tree | 440fb6327f713e010ebaf75ba7e8178946db686a /components/canvas_traits | |
parent | f626355b67fc007d5961c446d5a4ddbcc3785698 (diff) | |
download | servo-4050b7f9eca4c581d100fed778fa09f21d7e09dd.tar.gz servo-4050b7f9eca4c581d100fed778fa09f21d7e09dd.zip |
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
Diffstat (limited to 'components/canvas_traits')
-rw-r--r-- | components/canvas_traits/webgl.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/canvas_traits/webgl.rs b/components/canvas_traits/webgl.rs index 88b5f3e0bbc..70986d78b6d 100644 --- a/components/canvas_traits/webgl.rs +++ b/components/canvas_traits/webgl.rs @@ -248,6 +248,8 @@ pub enum WebGLCommand { BindAttribLocation(WebGLProgramId, u32, String), BufferData(u32, IpcBytesReceiver, u32), BufferSubData(u32, isize, IpcBytesReceiver), + GetBufferSubData(u32, usize, usize, IpcBytesSender), + CopyBufferSubData(u32, u32, i64, i64, i64), Clear(u32), ClearColor(f32, f32, f32, f32), ClearDepth(f32), |