Sha256: a3d31a3ebd47d94d33e08fc87dc352b08ff6d22de8921f387b61abf1c9ea6275

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 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.WebGPUBinding = 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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

  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; }

  var WebGPUBinding = /*#__PURE__*/function () {
    function WebGPUBinding() {
      var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

      _classCallCheck(this, WebGPUBinding);

      this.name = name;
      this.visibility = null;
      this.type = null; // read-only

      this.isShared = false;
    }

    _createClass(WebGPUBinding, [{
      key: "setVisibility",
      value: function setVisibility(visibility) {
        this.visibility = visibility;
      }
    }]);

    return WebGPUBinding;
  }();

  var _default = WebGPUBinding;
  _exports.default = _default;
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-js_wrap-three-0.1.5 lib-opal/js_wrap/three/renderers/webgpu/WebGPUBinding.js
opal-js_wrap-three-0.1.4 lib-opal/js_wrap/three/renderers/webgpu/WebGPUBinding.js
opal-js_wrap-three-0.1.3 lib-opal/js_wrap/three/renderers/webgpu/WebGPUBinding.js
opal-js_wrap-three-0.1.2 lib-opal/js_wrap/three/renderers/webgpu/WebGPUBinding.js