(name, value)
| 812 | } |
| 813 | |
| 814 | setUniform1i(name, value) { |
| 815 | if (this.uniform1iCache.hasOwnProperty(name)) { |
| 816 | const cache = this.uniform1iCache[name]; |
| 817 | if (value === cache) { |
| 818 | return; |
| 819 | } |
| 820 | } |
| 821 | this.uniform1iCache[name] = value; |
| 822 | const loc = this.getUniformLocation(name); |
| 823 | this.context.uniform1i(loc, value); |
| 824 | } |
| 825 | |
| 826 | setUniform2f(name, value1, value2) { |
| 827 | if (this.uniform2fCache.hasOwnProperty(name)) { |
no test coverage detected