Buckets:
| let _id = 0; | |
| /** | |
| * A bind group represents a collection of bindings and thus a collection | |
| * or resources. Bind groups are assigned to pipelines to provide them | |
| * with the required resources (like uniform buffers or textures). | |
| * | |
| * @private | |
| */ | |
| class BindGroup { | |
| /** | |
| * Constructs a new bind group. | |
| * | |
| * @param {string} name - The bind group's name. | |
| * @param {Array<Binding>} bindings - An array of bindings. | |
| * @param {number} index - The group index. | |
| * @param {Array<Binding>} bindingsReference - An array of reference bindings. | |
| */ | |
| constructor( name = '', bindings = [], index = 0, bindingsReference = [] ) { | |
| /** | |
| * The bind group's name. | |
| * | |
| * @type {string} | |
| */ | |
| this.name = name; | |
| /** | |
| * An array of bindings. | |
| * | |
| * @type {Array<Binding>} | |
| */ | |
| this.bindings = bindings; | |
| /** | |
| * The group index. | |
| * | |
| * @type {number} | |
| */ | |
| this.index = index; | |
| /** | |
| * An array of reference bindings. | |
| * | |
| * @type {Array<Binding>} | |
| */ | |
| this.bindingsReference = bindingsReference; | |
| /** | |
| * The group's ID. | |
| * | |
| * @type {number} | |
| */ | |
| this.id = _id ++; | |
| } | |
| } | |
| export default BindGroup; | |
Xet Storage Details
- Size:
- 1.14 kB
- Xet hash:
- 1d30741105de328293a35d3e63769c5036ba643d3146c191a243690c8bb2a895
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.