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

Function getApplicationDefines

docs/app/js/sanddance-app.js:68056–68068  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68054 return injectShaderName ? "\n#define SHADER_NAME ".concat(id, "_").concat(SHADER_TYPE[type], "\n\n") : "";
68055}
68056function getApplicationDefines() {
68057 var defines = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
68058 var count = 0;
68059 var sourceText = "";
68060 for(var define in defines){
68061 if (count === 0) sourceText += "\n// APPLICATION DEFINES\n";
68062 count++;
68063 var value = defines[define];
68064 if (value || Number.isFinite(value)) sourceText += "#define ".concat(define.toUpperCase(), " ").concat(defines[define], "\n");
68065 }
68066 if (count === 0) sourceText += "\n";
68067 return sourceText;
68068}
68069function getHookFunctions(hookFunctions, hookInjections) {
68070 var result = "";
68071 for(var hookName in hookFunctions){

Callers 1

assembleShaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected