(name, value)
| 918 | } |
| 919 | |
| 920 | setUniform4iv(name, value) { |
| 921 | if (this.uniform4ivCache.hasOwnProperty(name)) { |
| 922 | const cache = this.uniform4ivCache[name]; |
| 923 | if ( |
| 924 | value[0] === cache[0] && |
| 925 | value[1] === cache[1] && |
| 926 | value[2] === cache[2] && |
| 927 | value[3] === cache[3] |
| 928 | ) { |
| 929 | return; |
| 930 | } |
| 931 | } |
| 932 | this.uniform4ivCache[name] = value; |
| 933 | const loc = this.getUniformLocation(name); |
| 934 | this.context.uniform4iv(loc, value); |
| 935 | } |
| 936 | |
| 937 | /** |
| 938 | * @desc Return WebGlUniformLocation for various variables |
no test coverage detected