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

Function Buffer1

docs/app/js/sanddance-app.js:61900–61914  ·  view source on GitHub ↗
(gl)

Source from the content-addressed store, hash-verified

61898var Buffer = function(_Resource) {
61899 (0, _inheritsDefault.default)(Buffer1, _Resource);
61900 function Buffer1(gl) {
61901 var _this;
61902 var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
61903 (0, _classCallCheckDefault.default)(this, Buffer1);
61904 _this = (0, _possibleConstructorReturnDefault.default)(this, (0, _getPrototypeOfDefault.default)(Buffer1).call(this, gl, props));
61905 _this.stubRemovedMethods("Buffer", "v6.0", [
61906 "layout",
61907 "setLayout",
61908 "getIndexedParameter"
61909 ]);
61910 _this.target = props.target || (_this.gl.webgl2 ? 36662 : 34962);
61911 _this.initialize(props);
61912 Object.seal((0, _assertThisInitializedDefault.default)(_this));
61913 return _this;
61914 }
61915 (0, _createClassDefault.default)(Buffer1, [
61916 {
61917 key: "getElementCount",

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected