mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement GetActiveAttrib
This commit is contained in:
parent
150338503d
commit
34644401c6
3 changed files with 23 additions and 1 deletions
|
@ -827,6 +827,17 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
})
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.10
|
||||
fn GetActiveAttrib(&self, program: Option<&WebGLProgram>, index: u32) -> Option<Root<WebGLActiveInfo>> {
|
||||
program.and_then(|p| match p.get_active_attrib(index) {
|
||||
Ok(ret) => Some(ret),
|
||||
Err(error) => {
|
||||
self.webgl_error(error);
|
||||
None
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.10
|
||||
fn GetAttribLocation(&self, program: Option<&WebGLProgram>, name: DOMString) -> i32 {
|
||||
if let Some(program) = program {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue