mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement instanced WebGL drawing calls (part of #20791)
This commit is contained in:
parent
0aefffc5bf
commit
4e6eea221a
12 changed files with 432 additions and 125 deletions
|
@ -282,6 +282,9 @@ pub enum WebGLCommand {
|
|||
GetTexParameterInt(u32, TexParameterInt, WebGLSender<i32>),
|
||||
TexParameteri(u32, TexParameterInt, i32),
|
||||
TexParameterf(u32, TexParameterFloat, f32),
|
||||
DrawArraysInstanced { mode: u32, first: i32, count: i32, primcount: i32 },
|
||||
DrawElementsInstanced { mode: u32, count: i32, type_: u32, offset: u32, primcount: i32 },
|
||||
VertexAttribDivisor { index: u32, divisor: u32 },
|
||||
}
|
||||
|
||||
macro_rules! define_resource_id_struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue