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

Method setUniform1i

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

Source from the content-addressed store, hash-verified

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

Callers 15

setUniform1iTestFunction · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80
updateValueMethod · 0.80

Calls 1

getUniformLocationMethod · 0.95

Tested by

no test coverage detected