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

Function getFloatArray

docs/tests/v2/es6/js/sanddance.js:60449–60457  ·  view source on GitHub ↗
(array, size)

Source from the content-addressed store, hash-verified

60447}
60448
60449function getFloatArray(array, size) {
60450 var fillValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
60451
60452 if (!array || array.length < size) {
60453 return new Float32Array(size).fill(fillValue);
60454 }
60455
60456 return array;
60457}
60458
60459function updateBuffer(_ref) {
60460 var gl = _ref.gl,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected