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

Function checkUniformArray

docs/app/js/sanddance-app.js:64890–64897  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

64888 return false;
64889}
64890function checkUniformArray(value) {
64891 if (value.length === 0) return false;
64892 var checkLength = Math.min(value.length, 16);
64893 for(var i = 0; i < checkLength; ++i){
64894 if (!Number.isFinite(value[i])) return false;
64895 }
64896 return true;
64897}
64898function copyUniform(uniforms, key, value) {
64899 if (Array.isArray(value) || ArrayBuffer.isView(value)) {
64900 if (uniforms[key]) {

Callers 1

checkUniformValueFunction · 0.70

Calls 1

minMethod · 0.45

Tested by

no test coverage detected