mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add support for WebGL2 framebuffer invalidation
Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
This commit is contained in:
parent
d42835b238
commit
cc07d930c8
10 changed files with 127 additions and 148 deletions
|
@ -35,7 +35,7 @@ raqote = {git = "https://github.com/jrmuizel/raqote"}
|
|||
time = { version = "0.1.0", optional = true }
|
||||
pixels = {path = "../pixels"}
|
||||
servo_config = {path = "../config"}
|
||||
sparkle = "0.1.17"
|
||||
sparkle = "0.1.19"
|
||||
webrender = {git = "https://github.com/servo/webrender"}
|
||||
webrender_api = {git = "https://github.com/servo/webrender"}
|
||||
webrender_traits = {path = "../webrender_traits"}
|
||||
|
|
|
@ -1968,6 +1968,12 @@ impl WebGLImpl {
|
|||
WebGLCommand::ClearBufferfi(buffer, draw_buffer, depth, stencil) => {
|
||||
gl.clear_buffer_fi(buffer, draw_buffer, depth, stencil)
|
||||
},
|
||||
WebGLCommand::InvalidateFramebuffer(target, ref attachments) => {
|
||||
gl.invalidate_framebuffer(target, attachments)
|
||||
},
|
||||
WebGLCommand::InvalidateSubFramebuffer(target, ref attachments, x, y, w, h) => {
|
||||
gl.invalidate_sub_framebuffer(target, attachments, x, y, w, h)
|
||||
},
|
||||
}
|
||||
|
||||
// If debug asertions are enabled, then check the error state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue