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

Method setUniform3fv

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

Source from the content-addressed store, hash-verified

869 }
870
871 setUniform3fv(name, value) {
872 if (this.uniform3fvCache.hasOwnProperty(name)) {
873 const cache = this.uniform3fvCache[name];
874 if (
875 value[0] === cache[0] &&
876 value[1] === cache[1] &&
877 value[2] === cache[2]
878 ) {
879 return;
880 }
881 }
882 this.uniform3fvCache[name] = value;
883 const loc = this.getUniformLocation(name);
884 this.context.uniform3fv(loc, value);
885 }
886
887 setUniform3iv(name, value) {
888 if (this.uniform3ivCache.hasOwnProperty(name)) {

Callers 2

setUniform3fvTestFunction · 0.80
updateValueMethod · 0.80

Calls 1

getUniformLocationMethod · 0.95

Tested by

no test coverage detected