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.

24 lines 598 B
/** @internal */ export class NativeHardwareTexture { get underlyingResource() { return this._nativeTexture; } constructor(existingTexture, engine) { this._engine = engine; this.set(existingTexture); } setUsage() { } set(hardwareTexture) { this._nativeTexture = hardwareTexture; } reset() { this._nativeTexture = null; } release() { if (this._nativeTexture) { this._engine.deleteTexture(this._nativeTexture); } this.reset(); } } //# sourceMappingURL=nativeHardwareTexture.js.map