(name, value)
| 839 | } |
| 840 | |
| 841 | setUniform2fv(name, value) { |
| 842 | if (this.uniform2fvCache.hasOwnProperty(name)) { |
| 843 | const cache = this.uniform2fvCache[name]; |
| 844 | if ( |
| 845 | value[0] === cache[0] && |
| 846 | value[1] === cache[1] |
| 847 | ) { |
| 848 | return; |
| 849 | } |
| 850 | } |
| 851 | this.uniform2fvCache[name] = value; |
| 852 | const loc = this.getUniformLocation(name); |
| 853 | this.context.uniform2fv(loc, value); |
| 854 | } |
| 855 | |
| 856 | setUniform2iv(name, value) { |
| 857 | if (this.uniform2ivCache.hasOwnProperty(name)) { |
no test coverage detected