123456789101112131415161718192021222324 |
- /** @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
|