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

Function normalizeShaderModule

docs/app/js/sanddance-app.js:68325–68334  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

68323 return ShaderModule1;
68324}();
68325function normalizeShaderModule(module) {
68326 if (!module.normalized) {
68327 module.normalized = true;
68328 if (module.uniforms && !module.getUniforms) {
68329 var shaderModule = new ShaderModule(module);
68330 module.getUniforms = shaderModule.getUniforms.bind(shaderModule);
68331 }
68332 }
68333 return module;
68334}
68335function normalizeInjections(injections) {
68336 var result = {
68337 vs: {},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected