mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
webgl: Implement Uniform1f, Uniform1fv, and Uniform4f
I was going to implement Uniform4fv with sequences, (since it practically implemented), but we can't until we support Float32Array args because codegen doesn't know how tu differenciate between both.
This commit is contained in:
parent
ee5aead60b
commit
532b53ddc9
4 changed files with 52 additions and 18 deletions
|
@ -180,7 +180,8 @@ pub enum CanvasWebGLMsg {
|
|||
LineWidth(f32),
|
||||
PixelStorei(u32, i32),
|
||||
LinkProgram(u32),
|
||||
Uniform4fv(i32, Vec<f32>),
|
||||
Uniform1f(i32, f32),
|
||||
Uniform4f(i32, f32, f32, f32, f32),
|
||||
UseProgram(u32),
|
||||
VertexAttrib(u32, f32, f32, f32, f32),
|
||||
VertexAttribPointer2f(u32, i32, bool, i32, u32),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue