mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement WebGLRenderingContextBase.getAttachedShaders
This commit is contained in:
parent
2befe47384
commit
a62bed82e4
11 changed files with 149 additions and 124 deletions
|
@ -3598,6 +3598,14 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
None => self.webgl_error(InvalidOperation),
|
||||
};
|
||||
}
|
||||
|
||||
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.9
|
||||
fn GetAttachedShaders(
|
||||
&self,
|
||||
program: &WebGLProgram,
|
||||
) -> Option<Vec<DomRoot<WebGLShader>>> {
|
||||
handle_potential_webgl_error!(self, program.attached_shaders().map(Some), None)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait LayoutCanvasWebGLRenderingContextHelpers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue