mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add initial support for WebGL 2 BlitFramebuffer (#26389)
Add initial support for the WebGL2 BlitFramebuffer call. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Istvan <istvan.miklos@h-lab.eu>
This commit is contained in:
parent
2575a0daf1
commit
c43762faea
29 changed files with 1686 additions and 31 deletions
|
@ -1388,6 +1388,22 @@ impl WebGLImpl {
|
|||
WebGLCommand::BindTexture(target, id) => unsafe {
|
||||
gl.bind_texture(target, id.map(WebGLTextureId::glow))
|
||||
},
|
||||
WebGLCommand::BlitFrameBuffer(
|
||||
src_x0,
|
||||
src_y0,
|
||||
src_x1,
|
||||
src_y1,
|
||||
dst_x0,
|
||||
dst_y0,
|
||||
dst_x1,
|
||||
dst_y1,
|
||||
mask,
|
||||
filter,
|
||||
) => unsafe {
|
||||
gl.blit_framebuffer(
|
||||
src_x0, src_y0, src_x1, src_y1, dst_x0, dst_y0, dst_x1, dst_y1, mask, filter,
|
||||
);
|
||||
},
|
||||
WebGLCommand::Uniform1f(uniform_id, v) => unsafe {
|
||||
gl.uniform_1_f32(native_uniform_location(uniform_id).as_ref(), v)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue