mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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
This commit is contained in:
parent
f626355b67
commit
4050b7f9ec
13 changed files with 510 additions and 197 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue