Sha256: 76ccdb05efde71508a9cbbcff0e908f7dfff62d46ce994bab8e5b2bb2415941d
Contents?: true
Size: 1.75 KB
Versions: 4
Compression:
Stored size: 1.75 KB
Contents
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); global.WebGPUProgrammableStage = mod.exports; } })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.default = void 0; function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var _id = 0; var WebGPUProgrammableStage = /*#__PURE__*/_createClass(function WebGPUProgrammableStage(device, code, type) { _classCallCheck(this, WebGPUProgrammableStage); this.id = _id++; this.code = code; this.type = type; this.usedTimes = 0; this.stage = { module: device.createShaderModule({ code: code }), entryPoint: 'main' }; }); var _default = WebGPUProgrammableStage; _exports.default = _default; });
Version data entries
4 entries across 4 versions & 1 rubygems