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

Function glFormatToComponents

docs/app/js/sanddance-app.js:63918–63937  ·  view source on GitHub ↗
(format)

Source from the content-addressed store, hash-verified

63916parcelHelpers.export(exports, "glTypeToBytes", ()=>glTypeToBytes);
63917var _utils = require("../utils");
63918function glFormatToComponents(format) {
63919 switch(format){
63920 case 6406:
63921 case 33326:
63922 case 6403:
63923 return 1;
63924 case 33328:
63925 case 33319:
63926 return 2;
63927 case 6407:
63928 case 34837:
63929 return 3;
63930 case 6408:
63931 case 34836:
63932 return 4;
63933 default:
63934 (0, _utils.assert)(false);
63935 return 0;
63936 }
63937}
63938function glTypeToBytes(type) {
63939 switch(type){
63940 case 5121:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected