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

Function typeToChannelCount

docs/app/js/sanddance-app.js:68730–68744  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

68728 }
68729}
68730function typeToChannelCount(type) {
68731 switch(type){
68732 case "float":
68733 return 1;
68734 case "vec2":
68735 return 2;
68736 case "vec3":
68737 return 3;
68738 case "vec4":
68739 return 4;
68740 default:
68741 (0, _utils.assert)(false);
68742 return null;
68743 }
68744}
68745function convertToVec4(variable, type) {
68746 switch(type){
68747 case "float":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected