MCPcopy Create free account
hub / github.com/microsoft/SandDance / copyUniform

Function copyUniform

docs/app/js/sanddance-app.js:64898–64905  ·  view source on GitHub ↗
(uniforms, key, value)

Source from the content-addressed store, hash-verified

64896 return true;
64897}
64898function copyUniform(uniforms, key, value) {
64899 if (Array.isArray(value) || ArrayBuffer.isView(value)) {
64900 if (uniforms[key]) {
64901 var dest = uniforms[key];
64902 for(var i = 0, len = value.length; i < len; ++i)dest[i] = value[i];
64903 } else uniforms[key] = value.slice();
64904 } else uniforms[key] = value;
64905}
64906function getSamplerSetter() {
64907 var cache = null;
64908 return function(gl, location, value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected