MCPcopy Create free account
hub / github.com/gpujs/gpu.js / setUniform2fv

Method setUniform2fv

src/backend/web-gl/kernel.js:841–854  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

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)) {

Callers 2

setUniform2fvTestFunction · 0.80
updateValueMethod · 0.80

Calls 1

getUniformLocationMethod · 0.95

Tested by

no test coverage detected