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
|
@ -1956,6 +1956,18 @@ impl WebGLImpl {
|
|||
offset as isize,
|
||||
size as isize,
|
||||
),
|
||||
WebGLCommand::ClearBufferfv(buffer, draw_buffer, ref value) => {
|
||||
gl.clear_buffer_fv(buffer, draw_buffer, value)
|
||||
},
|
||||
WebGLCommand::ClearBufferiv(buffer, draw_buffer, ref value) => {
|
||||
gl.clear_buffer_iv(buffer, draw_buffer, value)
|
||||
},
|
||||
WebGLCommand::ClearBufferuiv(buffer, draw_buffer, ref value) => {
|
||||
gl.clear_buffer_uiv(buffer, draw_buffer, value)
|
||||
},
|
||||
WebGLCommand::ClearBufferfi(buffer, draw_buffer, depth, stencil) => {
|
||||
gl.clear_buffer_fi(buffer, draw_buffer, depth, stencil)
|
||||
},
|
||||
}
|
||||
|
||||
// If debug asertions are enabled, then check the error state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue