qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/PixelFormat-bd725b72.js

2 lines
6.2 KiB
JavaScript
Raw Permalink Normal View History

2024-01-02 14:12:39 +08:00
define(["exports","./WebGLConstants-508b9636"],(function(_,t){"use strict";const n={UNSIGNED_BYTE:t.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:t.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:t.WebGLConstants.UNSIGNED_INT,FLOAT:t.WebGLConstants.FLOAT,HALF_FLOAT:t.WebGLConstants.HALF_FLOAT_OES,UNSIGNED_INT_24_8:t.WebGLConstants.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:t.WebGLConstants.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:t.WebGLConstants.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:t.WebGLConstants.UNSIGNED_SHORT_5_6_5,toWebGLConstant:function(_,e){switch(_){case n.UNSIGNED_BYTE:return t.WebGLConstants.UNSIGNED_BYTE;case n.UNSIGNED_SHORT:return t.WebGLConstants.UNSIGNED_SHORT;case n.UNSIGNED_INT:return t.WebGLConstants.UNSIGNED_INT;case n.FLOAT:return t.WebGLConstants.FLOAT;case n.HALF_FLOAT:return e.webgl2?t.WebGLConstants.HALF_FLOAT:t.WebGLConstants.HALF_FLOAT_OES;case n.UNSIGNED_INT_24_8:return t.WebGLConstants.UNSIGNED_INT_24_8;case n.UNSIGNED_SHORT_4_4_4_4:return t.WebGLConstants.UNSIGNED_SHORT_4_4_4_4;case n.UNSIGNED_SHORT_5_5_5_1:return t.WebGLConstants.UNSIGNED_SHORT_5_5_5_1;case n.UNSIGNED_SHORT_5_6_5:return n.UNSIGNED_SHORT_5_6_5}},isPacked:function(_){return _===n.UNSIGNED_INT_24_8||_===n.UNSIGNED_SHORT_4_4_4_4||_===n.UNSIGNED_SHORT_5_5_5_1||_===n.UNSIGNED_SHORT_5_6_5},sizeInBytes:function(_){switch(_){case n.UNSIGNED_BYTE:return 1;case n.UNSIGNED_SHORT:case n.UNSIGNED_SHORT_4_4_4_4:case n.UNSIGNED_SHORT_5_5_5_1:case n.UNSIGNED_SHORT_5_6_5:case n.HALF_FLOAT:return 2;case n.UNSIGNED_INT:case n.FLOAT:case n.UNSIGNED_INT_24_8:return 4}},validate:function(_){return _===n.UNSIGNED_BYTE||_===n.UNSIGNED_SHORT||_===n.UNSIGNED_INT||_===n.FLOAT||_===n.HALF_FLOAT||_===n.UNSIGNED_INT_24_8||_===n.UNSIGNED_SHORT_4_4_4_4||_===n.UNSIGNED_SHORT_5_5_5_1||_===n.UNSIGNED_SHORT_5_6_5}};var e=Object.freeze(n);const G={DEPTH_COMPONENT:t.WebGLConstants.DEPTH_COMPONENT,DEPTH_STENCIL:t.WebGLConstants.DEPTH_STENCIL,ALPHA:t.WebGLConstants.ALPHA,RGB:t.WebGLConstants.RGB,RGBA:t.WebGLConstants.RGBA,LUMINANCE:t.WebGLConstants.LUMINANCE,LUMINANCE_ALPHA:t.WebGLConstants.LUMINANCE_ALPHA,RGB_DXT1:t.WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:t.WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:t.WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:t.WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:t.WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:t.WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:t.WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:t.WebGLConstants.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:t.WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:t.WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM,componentsLength:function(_){switch(_){case G.RGB:return 3;case G.RGBA:return 4;case G.LUMINANCE_ALPHA:return 2;case G.ALPHA:case G.LUMINANCE:default:return 1}},validate:function(_){return _===G.DEPTH_COMPONENT||_===G.DEPTH_STENCIL||_===G.ALPHA||_===G.RGB||_===G.RGBA||_===G.LUMINANCE||_===G.LUMINANCE_ALPHA||_===G.RGB_DXT1||_===G.RGBA_DXT1||_===G.RGBA_DXT3||_===G.RGBA_DXT5||_===G.RGB_PVRTC_4BPPV1||_===G.RGB_PVRTC_2BPPV1||_===G.RGBA_PVRTC_4BPPV1||_===G.RGBA_PVRTC_2BPPV1||_===G.RGBA_ASTC||_===G.RGB_ETC1||_===G.RGB8_ETC2||_===G.RGBA8_ETC2_EAC||_===G.RGBA_BC7},isColorFormat:function(_){return _===G.ALPHA||_===G.RGB||_===G.RGBA||_===G.LUMINANCE||_===G.LUMINANCE_ALPHA},isDepthFormat:function(_){return _===G.DEPTH_COMPONENT||_===G.DEPTH_STENCIL},isCompressedFormat:function(_){return _===G.RGB_DXT1||_===G.RGBA_DXT1||_===G.RGBA_DXT3||_===G.RGBA_DXT5||_===G.RGB_PVRTC_4BPPV1||_===G.RGB_PVRTC_2BPPV1||_===G.RGBA_PVRTC_4BPPV1||_===G.RGBA_PVRTC_2BPPV1||_===G.RGBA_ASTC||_===G.RGB_ETC1||_===G.RGB8_ETC2||_===G.RGBA8_ETC2_EAC||_===G.RGBA_BC7},isDXTFormat:function(_){return _===G.RGB_DXT1||_===G.RGBA_DXT1||_===G.RGBA_DXT3||_===G.RGBA_DXT5},isPVRTCFormat:function(_){return _===G.RGB_PVRTC_4BPPV1||_===G.RGB_PVRTC_2BPPV1||_===G.RGBA