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

Function getShaderType

docs/app/js/sanddance-app.js:68047–68050  ·  view source on GitHub ↗
(_ref2)

Source from the content-addressed store, hash-verified

68045 };
68046}
68047function getShaderType(_ref2) {
68048 var type = _ref2.type;
68049 return "\n#define SHADER_TYPE_".concat(SHADER_TYPE[type].toUpperCase(), "\n");
68050}
68051function getShaderName(_ref3) {
68052 var id = _ref3.id, source = _ref3.source, type = _ref3.type;
68053 var injectShaderName = id && typeof id === "string" && source.indexOf("SHADER_NAME") === -1;

Callers 1

assembleShaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected