UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

20 lines 594 B
import { DataBuffer } from "../../Buffers/dataBuffer.js"; /** @internal */ export class WebGPUDataBuffer extends DataBuffer { set buffer(buffer) { this._buffer = buffer; } constructor(resource, capacity = 0) { super(); // Used to make sure the buffer is not recreated twice after a context loss/restoration this.engineId = -1; this.capacity = capacity; if (resource) { this._buffer = resource; } } get underlyingResource() { return this._buffer; } } //# sourceMappingURL=webgpuDataBuffer.js.map