Use byte channels to send textures to the WebGL thread

This commit is contained in:
Anthony Ramine 2018-09-08 13:05:05 +02:00
parent 408e540c55
commit 4bd8efa49e
3 changed files with 38 additions and 17 deletions

View file

@ -252,8 +252,8 @@ 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, ByteBuf),
TexSubImage2D(u32, i32, i32, i32, i32, i32, u32, u32, ByteBuf),
TexImage2D(u32, i32, i32, i32, i32, u32, u32, IpcBytesReceiver),
TexSubImage2D(u32, i32, i32, i32, i32, i32, u32, u32, IpcBytesReceiver),
DrawingBufferWidth(WebGLSender<i32>),
DrawingBufferHeight(WebGLSender<i32>),
Finish(WebGLSender<()>),