| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /**
- * Reusable descriptor for `GPUDevice.createQuerySet()`.
- *
- * @private
- */
- class GPUQuerySetDescriptor {
- constructor() {
- /**
- * The label of the query set.
- *
- * @type {string}
- */
- this.label = '';
- /**
- * The type of queries managed by the set.
- *
- * @type {string|undefined}
- */
- this.type = undefined;
- /**
- * The number of queries managed by the set.
- *
- * @type {number}
- * @default 0
- */
- this.count = 0;
- }
- /**
- * Resets the descriptor to its default state.
- */
- reset() {
- this.label = '';
- this.type = undefined;
- this.count = 0;
- }
- }
- export default GPUQuerySetDescriptor;
|