mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add support for WebGL2 clear buffer operations
Adds support for the following WebGL2 methods: - `clearBufferfv` - `clearBufferiv` - `clearBufferuiv` - `clearBufferfi` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
This commit is contained in:
parent
92f5b36f49
commit
8701d45715
10 changed files with 217 additions and 127 deletions
|
@ -529,6 +529,10 @@ pub enum WebGLCommand {
|
|||
GetSamplerParameterInt(WebGLSamplerId, u32, WebGLSender<i32>),
|
||||
BindBufferBase(u32, u32, Option<WebGLBufferId>),
|
||||
BindBufferRange(u32, u32, Option<WebGLBufferId>, i64, i64),
|
||||
ClearBufferfv(u32, i32, Vec<f32>),
|
||||
ClearBufferiv(u32, i32, Vec<i32>),
|
||||
ClearBufferuiv(u32, i32, Vec<u32>),
|
||||
ClearBufferfi(u32, i32, f32, i32),
|
||||
}
|
||||
|
||||
macro_rules! nonzero_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue