mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make TexImage2D and TexSubImage2D struct variants
This commit is contained in:
parent
da43e35ab2
commit
65d1b11929
3 changed files with 70 additions and 47 deletions
|
@ -272,8 +272,27 @@ pub enum WebGLCommand {
|
|||
VertexAttribPointer(u32, i32, u32, bool, i32, u32),
|
||||
VertexAttribPointer2f(u32, i32, bool, i32, u32),
|
||||
SetViewport(i32, i32, i32, i32),
|
||||
TexImage2D(u32, i32, i32, i32, i32, u32, u32, IpcBytesReceiver),
|
||||
TexSubImage2D(u32, i32, i32, i32, i32, i32, u32, u32, IpcBytesReceiver),
|
||||
TexImage2D {
|
||||
target: u32,
|
||||
level: u32,
|
||||
internal_format: u32,
|
||||
width: u32,
|
||||
height: u32,
|
||||
format: u32,
|
||||
data_type: u32,
|
||||
receiver: IpcBytesReceiver,
|
||||
},
|
||||
TexSubImage2D {
|
||||
target: u32,
|
||||
level: u32,
|
||||
xoffset: i32,
|
||||
yoffset: i32,
|
||||
width: u32,
|
||||
height: u32,
|
||||
format: u32,
|
||||
data_type: u32,
|
||||
receiver: IpcBytesReceiver,
|
||||
},
|
||||
DrawingBufferWidth(WebGLSender<i32>),
|
||||
DrawingBufferHeight(WebGLSender<i32>),
|
||||
Finish(WebGLSender<()>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue