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

Function Shader1

docs/app/js/sanddance-app.js:64193–64206  ·  view source on GitHub ↗
(gl, props)

Source from the content-addressed store, hash-verified

64191 }
64192 ]);
64193 function Shader1(gl, props) {
64194 var _this;
64195 (0, _classCallCheckDefault.default)(this, Shader1);
64196 (0, _webglUtils.assertWebGLContext)(gl);
64197 (0, _utils.assert)(typeof props.source === "string", ERR_SOURCE);
64198 var id = (0, _glslUtils.getShaderName)(props.source, null) || props.id || (0, _utils.uid)("unnamed ".concat(Shader1.getTypeName(props.shaderType)));
64199 _this = (0, _possibleConstructorReturnDefault.default)(this, (0, _getPrototypeOfDefault.default)(Shader1).call(this, gl, {
64200 id: id
64201 }));
64202 _this.shaderType = props.shaderType;
64203 _this.source = props.source;
64204 _this.initialize(props);
64205 return _this;
64206 }
64207 (0, _createClassDefault.default)(Shader1, [
64208 {
64209 key: "initialize",

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected