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

Function getSourceBufferAttribute

docs/app/js/sanddance-app.js:86402–86413  ·  view source on GitHub ↗
(gl, attribute)

Source from the content-addressed store, hash-verified

86400 return Object.assign({}, DEFAULT_TRANSITION_SETTINGS[userSettings.type], layerSettings, userSettings);
86401}
86402function getSourceBufferAttribute(gl, attribute) {
86403 var buffer = attribute.getBuffer();
86404 if (buffer) return [
86405 attribute.getBuffer(),
86406 {
86407 divisor: 0,
86408 size: attribute.size,
86409 normalized: attribute.settings.normalized
86410 }
86411 ];
86412 return attribute.value;
86413}
86414function getAttributeTypeFromSize(size) {
86415 switch(size){
86416 case 1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected