diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-20 15:22:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-20 15:22:34 -0700 |
commit | 70d55a83f110cce35e721e5d415cf7252c0558af (patch) | |
tree | d99ff6518c507d794bae60dcebee64f4c1fdcdbb | |
parent | 5f777e08f2affe3e640edf0be757ccfae13cba99 (diff) |
getActiveAttrib
-rw-r--r-- | src/webGLWorker.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 1a051bbd..be409cfe 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -629,6 +629,11 @@ function WebGLWorker() { default: throw 'bad getProgramParameter ' + revname(name); } }; + this.getActiveAttrib = function(program, index) { + var name = program.attributeVec[index]; + if (!name) return null; + return program.attributes[name]; + }; this.getActiveUniform = function(program, index) { var name = program.uniformVec[index]; if (!name) return null; |