/** * @public */ export declare enum DataType { byte = 5120, short = 5122, int = 5124, ubyte = 5121, ushort = 5123, uint = 5125, half = 5131, float = 5126, ushort_5_6_5 = 33635, ushort_4_4_4_4 = 32819, ushort_5_5_5_1 = 32820, uint_5_9_9_9_REV = 35902, uint_2_10_10_10_REV = 33640, uint_10F_11F_11F_REV = 35899, uint_24_8 = 34042 } /** * @public */ export declare type DataTypeName = keyof typeof DataType; /** * @public */ export declare function valueOfDataType(keyOrValue: DataType | DataTypeName): DataType; /** * @public */ export declare function nameOfDataType(keyOrValue: DataType | DataTypeName): DataTypeName; /** * @public */ export declare type DataTypeOption = DataType | DataTypeName; /** * @public */ export declare function dataTypeSize(value: DataTypeOption): any; /** * @public */ export declare const ArrayType: Readonly<{ byte: Int8ArrayConstructor; BYTE: Int8ArrayConstructor; 5120: Int8ArrayConstructor; short: Int16ArrayConstructor; SHORT: Int16ArrayConstructor; 5122: Int16ArrayConstructor; int: Int32ArrayConstructor; INT: Int32ArrayConstructor; 5124: Int32ArrayConstructor; ubyte: Uint8ArrayConstructor; UNSIGNED_BYTE: Uint8ArrayConstructor; 5121: Uint8ArrayConstructor; ushort: Uint16ArrayConstructor; UNSIGNED_SHORT: Uint16ArrayConstructor; 5123: Uint16ArrayConstructor; uint: Uint32ArrayConstructor; UNSIGNED_INT: Uint32ArrayConstructor; 5125: Uint32ArrayConstructor; half: Uint16ArrayConstructor; HALF_FLOAT: Uint16ArrayConstructor; 5131: Uint16ArrayConstructor; float: Float32ArrayConstructor; FLOAT: Float32ArrayConstructor; 5126: Float32ArrayConstructor; ushort_5_6_5: Uint16ArrayConstructor; UNSIGNED_SHORT_5_6_5: Uint16ArrayConstructor; 33635: Uint16ArrayConstructor; ushort_4_4_4_4: Uint16ArrayConstructor; UNSIGNED_SHORT_4_4_4_4: Uint16ArrayConstructor; 32819: Uint16ArrayConstructor; ushort_5_5_5_1: Uint16ArrayConstructor; UNSIGNED_SHORT_5_5_5_1: Uint16ArrayConstructor; 32820: Uint16ArrayConstructor; uint_5_9_9_9_REV: Uint32ArrayConstructor; UNSIGNED_INT_5_9_9_9_REV: Uint32ArrayConstructor; 35902: Uint32ArrayConstructor; uint_2_10_10_10_REV: Uint32ArrayConstructor; UNSIGNED_INT_2_10_10_10_REV: Uint32ArrayConstructor; 33640: Uint32ArrayConstructor; uint_10F_11F_11F_REV: Uint32ArrayConstructor; UNSIGNED_INT_10F_11F_11F_REV: Uint32ArrayConstructor; 35899: Uint32ArrayConstructor; uint_24_8: Uint32ArrayConstructor; UNSIGNED_INT_24_8: Uint32ArrayConstructor; 34042: Uint32ArrayConstructor; }>; /** * @public */ export declare enum BufferUsage { Static = 35044, Dynamic = 35048, Stream = 35040 } /** * @public */ export declare type BufferUsageName = keyof typeof BufferUsage; /** * @public */ export declare function valueOfBufferUsage(keyOrValue: BufferUsage | BufferUsageName): BufferUsage; /** * @public */ export declare function nameOfBufferUsage(keyOrValue: BufferUsage | BufferUsageName): BufferUsageName; /** * @public */ export declare type BufferUsageOption = BufferUsage | BufferUsageName; /** * @public */ export declare enum BufferType { VertexBuffer = 34962, IndexBuffer = 34963 } /** * @public */ export declare type BufferTypeName = keyof typeof BufferType; /** * @public */ export declare function valueOfBufferType(keyOrValue: BufferType | BufferTypeName): BufferType; /** * @public */ export declare function nameOfBufferType(keyOrValue: BufferType | BufferTypeName): BufferTypeName; /** * @public */ export declare type BufferTypeOption = BufferType | BufferTypeName; /** * @public */ export declare enum Blend { Zero = 0, One = 1, SrcColor = 768, SrcColorInv = 769, SrcAlpha = 770, SrcAlphaInv = 771, SrcAlphaSat = 776, DstColor = 774, DstColorInv = 775, DstAlpha = 772, DstAlphaInv = 773, ConstantColor = 32769, ConstantColorInv = 32770, ConstantAlpha = 32771, ConstantAlphaInv = 32772 } /** * @public */ export declare type BlendName = keyof typeof Blend; /** * @public */ export declare function valueOfBlend(keyOrValue: Blend | BlendName): Blend; /** * @public */ export declare function nameOfBlend(keyOrValue: Blend | BlendName): BlendName; /** * @public */ export declare type BlendOption = Blend | BlendName; /** * @public */ export declare enum BlendFunction { Add = 32774, Subtract = 32778, ReverseSubtract = 32779 } /** * @public */ export declare type BlendFunctionName = keyof typeof BlendFunction; /** * @public */ export declare function valueOfBlendFunction(keyOrValue: BlendFunction | BlendFunctionName): BlendFunction; /** * @public */ export declare function nameOfBlendFunction(keyOrValue: BlendFunction | BlendFunctionName): BlendFunctionName; /** * @public */ export declare type BlendFunctionOption = BlendFunction | BlendFunctionName; /** * @public */ export declare enum CompareFunction { Never = 512, Less = 513, Equal = 514, LessEqual = 515, Greater = 516, NotEqual = 517, GreaterEqual = 518, Always = 519 } /** * @public */ export declare type CompareFunctionName = keyof typeof CompareFunction; /** * @public */ export declare function valueOfCompareFunction(keyOrValue: CompareFunction | CompareFunctionName): CompareFunction; /** * @public */ export declare function nameOfCompareFunction(keyOrValue: CompareFunction | CompareFunctionName): CompareFunctionName; /** * @public */ export declare type CompareFunctionOption = CompareFunction | CompareFunctionName; /** * @public */ export declare enum CullMode { Front = 1028, Back = 1029, FrontAndBack = 1032 } /** * @public */ export declare type CullModeName = keyof typeof CullMode; /** * @public */ export declare function valueOfCullMode(keyOrValue: CullMode | CullModeName): CullMode; /** * @public */ export declare function nameOfCullMode(keyOrValue: CullMode | CullModeName): CullModeName; /** * @public */ export declare type CullModeOption = CullMode | CullModeName; /** * @public */ export declare enum FrontFace { ClockWise = 2304, CounterClockWise = 2305 } /** * @public */ export declare type FrontFaceName = keyof typeof FrontFace; /** * @public */ export declare function valueOfFrontFace(keyOrValue: FrontFace | FrontFaceName): FrontFace; /** * @public */ export declare function nameOfFrontFace(keyOrValue: FrontFace | FrontFaceName): FrontFaceName; /** * @public */ export declare type FrontFaceOption = FrontFace | FrontFaceName; /** * @public */ export declare enum StencilOperation { Zero = 0, Keep = 7680, Replace = 7681, Increment = 7682, Decrement = 7683, Invert = 5386, IncrementWrap = 34055, DecrementWrap = 34056 } /** * @public */ export declare type StencilOperationName = keyof typeof StencilOperation; /** * @public */ export declare function valueOfStencilOperation(keyOrValue: StencilOperation | StencilOperationName): StencilOperation; /** * @public */ export declare function nameOfStencilOperation(keyOrValue: StencilOperation | StencilOperationName): StencilOperationName; /** * @public */ export declare type StencilOperationOption = StencilOperation | StencilOperationName; /** * @public */ export declare enum PixelFormat { ALPHA = 6406, LUMINANCE = 6409, LUMINANCE_ALPHA = 6410, RGB = 6407, RGBA = 6408, RED = 6403, RED_INTEGER = 36244, RG = 33319, RG_INTEGER = 33320, RGB_INTEGER = 36248, RGBA_INTEGER = 36249 } /** * @public */ export declare type PixelFormatName = keyof typeof PixelFormat; /** * @public */ export declare function valueOfPixelFormat(keyOrValue: PixelFormat | PixelFormatName): PixelFormat; /** * @public */ export declare function nameOfPixelFormat(keyOrValue: PixelFormat | PixelFormatName): PixelFormatName; /** * @public */ export declare type PixelFormatOption = PixelFormat | PixelFormatName; /** * @public */ export declare function pixelFormatElementCount(value: PixelFormatOption): any; /** * @public */ export declare enum SurfaceFormat { ALPHA = 6406, LUMINANCE = 6409, LUMINANCE_ALPHA = 6410, RGB = 6407, RGBA = 6408, R8 = 33321, R16F = 33325, R32F = 33326, R8UI = 33330, RG8 = 33323, RG16F = 33327, RG32F = 33328, RG8UI = 33336, RG16UI = 33338, RG32UI = 33340, RGB8 = 32849, SRGB8 = 35905, RGB565 = 36194, R11F_G11F_B10F = 35898, RGB9_E5 = 35901, RGB16F = 34843, RGB32F = 34837, RGB8UI = 36221, RGBA8 = 32856, SRGB8_ALPHA8 = 35907, RGB5_A1 = 32855, RGB10_A2 = 32857, RGBA4 = 32854, RGBA16F = 34842, RGBA32F = 34836, RGBA8UI = 36220 } /** * @public */ export declare type SurfaceFormatName = keyof typeof SurfaceFormat; /** * @public */ export declare function valueOfSurfaceFormat(keyOrValue: SurfaceFormat | SurfaceFormatName): SurfaceFormat; /** * @public */ export declare function nameOfSurfaceFormat(keyOrValue: SurfaceFormat | SurfaceFormatName): SurfaceFormatName; /** * @public */ export declare type SurfaceFormatOption = SurfaceFormat | SurfaceFormatName; /** * @public */ export declare enum PrimitiveType { PointList = 0, LineList = 1, LineStrip = 3, TriangleList = 4, TriangleStrip = 5, TriangleFan = 6 } /** * @public */ export declare type PrimitiveTypeName = keyof typeof PrimitiveType; /** * @public */ export declare function valueOfPrimitiveType(keyOrValue: PrimitiveType | PrimitiveTypeName): PrimitiveType; /** * @public */ export declare function nameOfPrimitiveType(keyOrValue: PrimitiveType | PrimitiveTypeName): PrimitiveTypeName; /** * @public */ export declare type PrimitiveTypeOption = PrimitiveType | PrimitiveTypeName; /** * @public */ export declare enum TextureType { Texture = 5890, Texture2D = 3553, TextureCube = 34067 } /** * @public */ export declare type TextureTypeName = keyof typeof TextureType; /** * @public */ export declare function valueOfTextureType(keyOrValue: TextureType | TextureTypeName): TextureType; /** * @public */ export declare function nameOfTextureType(keyOrValue: TextureType | TextureTypeName): TextureTypeName; /** * @public */ export declare type TextureTypeOption = TextureType | TextureTypeName; /** * @public */ export declare enum TextureWrapMode { Repeat = 10497, Clamp = 33071, Mirror = 33648 } /** * @public */ export declare type TextureWrapModeName = keyof typeof TextureWrapMode; /** * @public */ export declare function valueOfTextureWrapMode(keyOrValue: TextureWrapMode | TextureWrapModeName): TextureWrapMode; /** * @public */ export declare function nameOfTextureWrapMode(keyOrValue: TextureWrapMode | TextureWrapModeName): TextureWrapModeName; /** * @public */ export declare type TextureWrapModeOption = TextureWrapMode | TextureWrapModeName; /** * @public */ export declare enum TextureFilter { Point = 9728, Linear = 9729, PointMipPoint = 9984, LinearMipPoint = 9985, PointMipLinear = 9986, LinearMipLinear = 9987 } /** * @public */ export declare type TextureFilterName = keyof typeof TextureFilter; /** * @public */ export declare function valueOfTextureFilter(keyOrValue: TextureFilter | TextureFilterName): TextureFilter; /** * @public */ export declare function nameOfTextureFilter(keyOrValue: TextureFilter | TextureFilterName): TextureFilterName; /** * @public */ export declare type TextureFilterOption = TextureFilter | TextureFilterName; /** * @public */ export declare enum ShaderType { VertexShader = 35633, FragmentShader = 35632 } /** * @public */ export declare type ShaderTypeName = keyof typeof ShaderType; /** * @public */ export declare function valueOfShaderType(keyOrValue: ShaderType | ShaderTypeName): ShaderType; /** * @public */ export declare function nameOfShaderType(keyOrValue: ShaderType | ShaderTypeName): ShaderTypeName; /** * @public */ export declare type ShaderTypeOption = ShaderType | ShaderTypeName; /** * @public */ export declare enum DepthFormat { None = 0, DepthStencil = 34041, Depth16 = 33189, Depth24 = 33190, Depth32 = 36012, Depth24Stencil8 = 35056, Depth32Stencil8 = 36013 } /** * @public */ export declare type DepthFormatName = keyof typeof DepthFormat; /** * @public */ export declare function valueOfDepthFormat(keyOrValue: DepthFormat | DepthFormatName): DepthFormat; /** * @public */ export declare function nameOfDepthFormat(keyOrValue: DepthFormat | DepthFormatName): DepthFormatName; /** * @public */ export declare type DepthFormatOption = DepthFormat | DepthFormatName; /** * @public */ export declare enum StencilFormat { Stencil8 = 36168 } /** * @public */ export declare type StencilFormatName = keyof typeof StencilFormat; /** * @public */ export declare function valueOfStencilFormat(keyOrValue: StencilFormat | StencilFormatName): StencilFormat; /** * @public */ export declare function nameOfStencilFormat(keyOrValue: StencilFormat | StencilFormatName): StencilFormatName; /** * @public */ export declare type StencilFormatOption = StencilFormat | StencilFormatName; /** * @public */ export declare enum LightType { None = 0, Directional = 1, Point = 2, Spot = 3, Box = 4 } /** * @public */ export declare type LightTypeName = keyof typeof LightType; /** * @public */ export declare function valueOfLightType(keyOrValue: LightType | LightTypeName): LightType; /** * @public */ export declare function nameOfLightType(keyOrValue: LightType | LightTypeName): LightTypeName; /** * @public */ export declare type LightTypeOption = LightType | LightTypeName; //# sourceMappingURL=Enums.d.ts.map