{"ast":null,"code":"import { InternalTexture } from \"./internalTexture.js\";\n/**\n * Class used to store an external texture (like GPUExternalTexture in WebGPU)\n */\nexport class ExternalTexture {\n /**\n * Checks if a texture is an external or internal texture\n * @param texture the external or internal texture\n * @returns true if the texture is an external texture, else false\n */\n static IsExternalTexture(texture) {\n return texture.underlyingResource !== undefined;\n }\n /**\n * Get the class name of the texture.\n * @returns \"ExternalTexture\"\n */\n getClassName() {\n return \"ExternalTexture\";\n }\n /**\n * Gets the underlying texture object\n */\n get underlyingResource() {\n return this._video;\n }\n /**\n * Constructs the texture\n * @param video The video the texture should be wrapped around\n */\n constructor(video) {\n /**\n * Gets a boolean indicating if the texture uses mipmaps\n */\n this.useMipMaps = false;\n /**\n * The type of the underlying texture is implementation dependent, so return \"UNDEFINED\" for the type\n */\n this.type = 16;\n /**\n * The format of the underlying texture is implementation dependent, so return \"UNDEFINED\" for the format\n */\n this.format = 4294967295;\n this._video = video;\n this.uniqueId = InternalTexture._Counter++;\n }\n /**\n * Get if the texture is ready to be used (downloaded, converted, mip mapped...).\n * @returns true if fully ready\n */\n isReady() {\n return this._video.readyState >= this._video.HAVE_CURRENT_DATA;\n }\n /**\n * Dispose the texture and release its associated resources.\n */\n dispose() {}\n}","map":{"version":3,"names":["InternalTexture","ExternalTexture","IsExternalTexture","texture","underlyingResource","undefined","getClassName","_video","constructor","video","useMipMaps","type","format","uniqueId","_Counter","isReady","readyState","HAVE_CURRENT_DATA","dispose"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Textures/externalTexture.js"],"sourcesContent":["\nimport { InternalTexture } from \"./internalTexture.js\";\n/**\n * Class used to store an external texture (like GPUExternalTexture in WebGPU)\n */\nexport class ExternalTexture {\n /**\n * Checks if a texture is an external or internal texture\n * @param texture the external or internal texture\n * @returns true if the texture is an external texture, else false\n */\n static IsExternalTexture(texture) {\n return texture.underlyingResource !== undefined;\n }\n /**\n * Get the class name of the texture.\n * @returns \"ExternalTexture\"\n */\n getClassName() {\n return \"ExternalTexture\";\n }\n /**\n * Gets the underlying texture object\n */\n get underlyingResource() {\n return this._video;\n }\n /**\n * Constructs the texture\n * @param video The video the texture should be wrapped around\n */\n constructor(video) {\n /**\n * Gets a boolean indicating if the texture uses mipmaps\n */\n this.useMipMaps = false;\n /**\n * The type of the underlying texture is implementation dependent, so return \"UNDEFINED\" for the type\n */\n this.type = 16;\n /**\n * The format of the underlying texture is implementation dependent, so return \"UNDEFINED\" for the format\n */\n this.format = 4294967295;\n this._video = video;\n this.uniqueId = InternalTexture._Counter++;\n }\n /**\n * Get if the texture is ready to be used (downloaded, converted, mip mapped...).\n * @returns true if fully ready\n */\n isReady() {\n return this._video.readyState >= this._video.HAVE_CURRENT_DATA;\n }\n /**\n * Dispose the texture and release its associated resources.\n */\n dispose() { }\n}\n"],"mappings":"AACA,SAASA,eAAe,QAAQ,sBAAsB;AACtD;AACA;AACA;AACA,OAAO,MAAMC,eAAe,CAAC;EACzB;AACJ;AACA;AACA;AACA;EACI,OAAOC,iBAAiBA,CAACC,OAAO,EAAE;IAC9B,OAAOA,OAAO,CAACC,kBAAkB,KAAKC,SAAS;EACnD;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,iBAAiB;EAC5B;EACA;AACJ;AACA;EACI,IAAIF,kBAAkBA,CAAA,EAAG;IACrB,OAAO,IAAI,CAACG,MAAM;EACtB;EACA;AACJ;AACA;AACA;EACIC,WAAWA,CAACC,KAAK,EAAE;IACf;AACR;AACA;IACQ,IAAI,CAACC,UAAU,GAAG,KAAK;IACvB;AACR;AACA;IACQ,IAAI,CAACC,IAAI,GAAG,EAAE;IACd;AACR;AACA;IACQ,IAAI,CAACC,MAAM,GAAG,UAAU;IACxB,IAAI,CAACL,MAAM,GAAGE,KAAK;IACnB,IAAI,CAACI,QAAQ,GAAGb,eAAe,CAACc,QAAQ,EAAE;EAC9C;EACA;AACJ;AACA;AACA;EACIC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACR,MAAM,CAACS,UAAU,IAAI,IAAI,CAACT,MAAM,CAACU,iBAAiB;EAClE;EACA;AACJ;AACA;EACIC,OAAOA,CAAA,EAAG,CAAE;AAChB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}