playcanvas
Version:
PlayCanvas WebGL game engine
2,300 lines (2,297 loc) • 1.85 MB
TypeScript
/**
* Logs a frame number.
*
* @category Debug
*/
declare const TRACEID_RENDER_FRAME: "RenderFrame";
/**
* Logs a frame time.
*
* @category Debug
*/
declare const TRACEID_RENDER_FRAME_TIME: "RenderFrameTime";
/**
* Logs basic information about generated render passes.
*
* @category Debug
*/
declare const TRACEID_RENDER_PASS: "RenderPass";
/**
* Logs additional detail for render passes.
*
* @category Debug
*/
declare const TRACEID_RENDER_PASS_DETAIL: "RenderPassDetail";
/**
* Logs render actions created by the layer composition. Only executes when the
* layer composition changes.
*
* @category Debug
*/
declare const TRACEID_RENDER_ACTION: "RenderAction";
/**
* Logs the allocation of render targets.
*
* @category Debug
*/
declare const TRACEID_RENDER_TARGET_ALLOC: "RenderTargetAlloc";
/**
* Logs the allocation of textures.
*
* @category Debug
*/
declare const TRACEID_TEXTURE_ALLOC: "TextureAlloc";
/**
* Logs the creation of shaders.
*
* @category Debug
*/
declare const TRACEID_SHADER_ALLOC: "ShaderAlloc";
/**
* Logs the compilation time of shaders.
*
* @category Debug
*/
declare const TRACEID_SHADER_COMPILE: "ShaderCompile";
/**
* Logs the vram use by the textures.
*
* @category Debug
*/
declare const TRACEID_VRAM_TEXTURE: "VRAM.Texture";
/**
* Logs the vram use by the vertex buffers.
*
* @category Debug
*/
declare const TRACEID_VRAM_VB: "VRAM.Vb";
/**
* Logs the vram use by the index buffers.
*
* @category Debug
*/
declare const TRACEID_VRAM_IB: "VRAM.Ib";
/**
* Logs the vram use by the storage buffers.
*
* @category Debug
*/
declare const TRACEID_VRAM_SB: "VRAM.Sb";
/**
* Logs the creation of bind groups.
*
* @category Debug
*/
declare const TRACEID_BINDGROUP_ALLOC: "BindGroupAlloc";
/**
* Logs the creation of bind group formats.
*
* @category Debug
*/
declare const TRACEID_BINDGROUPFORMAT_ALLOC: "BindGroupFormatAlloc";
/**
* Logs the creation of render pipelines. WebBPU only.
*
* @category Debug
*/
declare const TRACEID_RENDERPIPELINE_ALLOC: "RenderPipelineAlloc";
/**
* Logs the creation of compute pipelines. WebGPU only.
*
* @category Debug
*/
declare const TRACEID_COMPUTEPIPELINE_ALLOC: "ComputePipelineAlloc";
/**
* Logs the creation of pipeline layouts. WebBPU only.
*
* @category Debug
*/
declare const TRACEID_PIPELINELAYOUT_ALLOC: "PipelineLayoutAlloc";
/**
* Logs the internal debug information for Elements.
*
* @category Debug
*/
declare const TRACEID_ELEMENT: "Element";
/**
* Logs the vram use by all textures in memory.
*
* @category Debug
*/
declare const TRACEID_TEXTURES: "Textures";
/**
* Logs the render queue commands.
*
* @category Debug
*/
declare const TRACEID_RENDER_QUEUE: "RenderQueue";
/**
* Logs the GPU timings.
*
* @category Debug
*/
declare const TRACEID_GPU_TIMINGS: "GpuTimings";
/**
* A linear interpolation scheme.
*
* @category Math
*/
declare const CURVE_LINEAR: 0;
/**
* A smooth step interpolation scheme.
*
* @category Math
*/
declare const CURVE_SMOOTHSTEP: 1;
/**
* Cardinal spline interpolation scheme. For a Catmull-Rom spline, specify a curve tension of 0.5.
*
* @category Math
*/
declare const CURVE_SPLINE: 4;
/**
* A stepped interpolator that does not perform any blending.
*
* @category Math
*/
declare const CURVE_STEP: 5;
/**
* Ignores the integer part of texture coordinates, using only the fractional part.
*
* @category Graphics
*/
declare const ADDRESS_REPEAT: 0;
/**
* Clamps texture coordinate to the range 0 to 1.
*
* @category Graphics
*/
declare const ADDRESS_CLAMP_TO_EDGE: 1;
/**
* Texture coordinate to be set to the fractional part if the integer part is even. If the integer
* part is odd, then the texture coordinate is set to 1 minus the fractional part.
*
* @category Graphics
*/
declare const ADDRESS_MIRRORED_REPEAT: 2;
/**
* Multiply all fragment components by zero.
*
* @category Graphics
*/
declare const BLENDMODE_ZERO: 0;
/**
* Multiply all fragment components by one.
*
* @category Graphics
*/
declare const BLENDMODE_ONE: 1;
/**
* Multiply all fragment components by the components of the source fragment.
*
* @category Graphics
*/
declare const BLENDMODE_SRC_COLOR: 2;
/**
* Multiply all fragment components by one minus the components of the source fragment.
*
* @category Graphics
*/
declare const BLENDMODE_ONE_MINUS_SRC_COLOR: 3;
/**
* Multiply all fragment components by the components of the destination fragment.
*
* @category Graphics
*/
declare const BLENDMODE_DST_COLOR: 4;
/**
* Multiply all fragment components by one minus the components of the destination fragment.
*
* @category Graphics
*/
declare const BLENDMODE_ONE_MINUS_DST_COLOR: 5;
/**
* Multiply all fragment components by the alpha value of the source fragment.
*
* @category Graphics
*/
declare const BLENDMODE_SRC_ALPHA: 6;
/**
* Multiply all fragment components by the alpha value of the source fragment.
*
* @category Graphics
*/
declare const BLENDMODE_SRC_ALPHA_SATURATE: 7;
/**
* Multiply all fragment components by one minus the alpha value of the source fragment.
*
* @category Graphics
*/
declare const BLENDMODE_ONE_MINUS_SRC_ALPHA: 8;
/**
* Multiply all fragment components by the alpha value of the destination fragment.
*
* @category Graphics
*/
declare const BLENDMODE_DST_ALPHA: 9;
/**
* Multiply all fragment components by one minus the alpha value of the destination fragment.
*
* @category Graphics
*/
declare const BLENDMODE_ONE_MINUS_DST_ALPHA: 10;
/**
* Multiplies all fragment components by a constant.
*
* @category Graphics
*/
declare const BLENDMODE_CONSTANT: 11;
/**
* Multiplies all fragment components by 1 minus a constant.
*
* @category Graphics
*/
declare const BLENDMODE_ONE_MINUS_CONSTANT: 12;
/**
* Add the results of the source and destination fragment multiplies.
*
* @category Graphics
*/
declare const BLENDEQUATION_ADD: 0;
/**
* Subtract the results of the source and destination fragment multiplies.
*
* @category Graphics
*/
declare const BLENDEQUATION_SUBTRACT: 1;
/**
* Reverse and subtract the results of the source and destination fragment multiplies.
*
* @category Graphics
*/
declare const BLENDEQUATION_REVERSE_SUBTRACT: 2;
/**
* Use the smallest value.
*
* @category Graphics
*/
declare const BLENDEQUATION_MIN: 3;
/**
* Use the largest value.
*
* @category Graphics
*/
declare const BLENDEQUATION_MAX: 4;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to make it available for read
* access by CPU.
*
* @category Graphics
*/
declare const BUFFERUSAGE_READ: 1;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to make it available for write
* access by CPU.
*
* @category Graphics
*/
declare const BUFFERUSAGE_WRITE: 2;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to ensure its compatibility
* when used as a source of a copy operation.
*
* @category Graphics
*/
declare const BUFFERUSAGE_COPY_SRC: 4;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to ensure its compatibility
* when used as a destination of a copy operation, or as a target of a write operation.
*
* @category Graphics
*/
declare const BUFFERUSAGE_COPY_DST: 8;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to ensure its compatibility
* when used as an index buffer.
*
* @category Graphics
*/
declare const BUFFERUSAGE_INDEX: 16;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to ensure its compatibility
* when used as a vertex buffer.
*
* @category Graphics
*/
declare const BUFFERUSAGE_VERTEX: 32;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to ensure its compatibility
* when used as an uniform buffer.
*
* @category Graphics
*/
declare const BUFFERUSAGE_UNIFORM: 64;
/**
* An internal flag utilized during the construction of a {@link StorageBuffer} to ensure its
* compatibility when used as a storage buffer.
* This flag is hidden as it's automatically used by the StorageBuffer constructor.
*
* @category Graphics
* @ignore
*/
declare const BUFFERUSAGE_STORAGE: 128;
/**
* A flag utilized during the construction of a {@link StorageBuffer} to allow it to store indirect
* command arguments.
* TODO: This flag is hidden till the feature is implemented.
*
* @category Graphics
* @ignore
*/
declare const BUFFERUSAGE_INDIRECT: 256;
/**
* The data store contents will be modified once and used many times.
*
* @category Graphics
*/
declare const BUFFER_STATIC: 0;
/**
* The data store contents will be modified repeatedly and used many times.
*
* @category Graphics
*/
declare const BUFFER_DYNAMIC: 1;
/**
* The data store contents will be modified once and used at most a few times.
*
* @category Graphics
*/
declare const BUFFER_STREAM: 2;
/**
* The data store contents will be modified repeatedly on the GPU and used many times. Optimal for
* transform feedback usage.
*
* @category Graphics
*/
declare const BUFFER_GPUDYNAMIC: 3;
/**
* Clear the color buffer.
*
* @category Graphics
*/
declare const CLEARFLAG_COLOR: 1;
/**
* Clear the depth buffer.
*
* @category Graphics
*/
declare const CLEARFLAG_DEPTH: 2;
/**
* Clear the stencil buffer.
*
* @category Graphics
*/
declare const CLEARFLAG_STENCIL: 4;
/**
* The positive X face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_POSX: 0;
/**
* The negative X face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_NEGX: 1;
/**
* The positive Y face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_POSY: 2;
/**
* The negative Y face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_NEGY: 3;
/**
* The positive Z face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_POSZ: 4;
/**
* The negative Z face of a cubemap.
*
* @category Graphics
*/
declare const CUBEFACE_NEGZ: 5;
/**
* No triangles are culled.
*
* @category Graphics
*/
declare const CULLFACE_NONE: 0;
/**
* Triangles facing away from the view direction are culled.
*
* @category Graphics
*/
declare const CULLFACE_BACK: 1;
/**
* Triangles facing the view direction are culled.
*
* @category Graphics
*/
declare const CULLFACE_FRONT: 2;
/**
* Triangles are culled regardless of their orientation with respect to the view direction. Note
* that point or line primitives are unaffected by this render state.
*
* @ignore
* @category Graphics
*/
declare const CULLFACE_FRONTANDBACK: 3;
/**
* Point sample filtering.
*
* @category Graphics
*/
declare const FILTER_NEAREST: 0;
/**
* Bilinear filtering.
*
* @category Graphics
*/
declare const FILTER_LINEAR: 1;
/**
* Use the nearest neighbor in the nearest mipmap level.
*
* @category Graphics
*/
declare const FILTER_NEAREST_MIPMAP_NEAREST: 2;
/**
* Linearly interpolate in the nearest mipmap level.
*
* @category Graphics
*/
declare const FILTER_NEAREST_MIPMAP_LINEAR: 3;
/**
* Use the nearest neighbor after linearly interpolating between mipmap levels.
*
* @category Graphics
*/
declare const FILTER_LINEAR_MIPMAP_NEAREST: 4;
/**
* Linearly interpolate both the mipmap levels and between texels.
*
* @category Graphics
*/
declare const FILTER_LINEAR_MIPMAP_LINEAR: 5;
/**
* Never pass.
*
* @category Graphics
*/
declare const FUNC_NEVER: 0;
/**
* Pass if (ref & mask) < (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_LESS: 1;
/**
* Pass if (ref & mask) == (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_EQUAL: 2;
/**
* Pass if (ref & mask) <= (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_LESSEQUAL: 3;
/**
* Pass if (ref & mask) > (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_GREATER: 4;
/**
* Pass if (ref & mask) != (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_NOTEQUAL: 5;
/**
* Pass if (ref & mask) >= (stencil & mask).
*
* @category Graphics
*/
declare const FUNC_GREATEREQUAL: 6;
/**
* Always pass.
*
* @category Graphics
*/
declare const FUNC_ALWAYS: 7;
/**
* 8-bit unsigned vertex indices (0 to 255).
*
* @category Graphics
*/
declare const INDEXFORMAT_UINT8: 0;
/**
* 16-bit unsigned vertex indices (0 to 65,535).
*
* @category Graphics
*/
declare const INDEXFORMAT_UINT16: 1;
/**
* 32-bit unsigned vertex indices (0 to 4,294,967,295).
*
* @category Graphics
*/
declare const INDEXFORMAT_UINT32: 2;
declare const PIXELFORMAT_A8: 0;
declare const PIXELFORMAT_L8: 1;
declare const PIXELFORMAT_LA8: 2;
/**
* 16-bit RGB (5-bits for red channel, 6 for green and 5 for blue).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGB565: 3;
/**
* 16-bit RGBA (5-bits for red channel, 5 for green, 5 for blue with 1-bit alpha).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA5551: 4;
/**
* 16-bit RGBA (4-bits for red channel, 4 for green, 4 for blue with 4-bit alpha).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA4: 5;
/**
* 24-bit RGB (8-bits for red channel, 8 for green and 8 for blue).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGB8: 6;
/**
* 32-bit RGBA (8-bits for red channel, 8 for green, 8 for blue with 8-bit alpha).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA8: 7;
/**
* Block compressed format storing 16 input pixels in 64 bits of output, consisting of two 16-bit
* RGB 5:6:5 color values and a 4x4 two bit lookup table.
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT1: 8;
/**
* Block compressed format storing 16 input pixels (corresponding to a 4x4 pixel block) into 128
* bits of output, consisting of 64 bits of alpha channel data (4 bits for each pixel) followed by
* 64 bits of color data; encoded the same way as DXT1.
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT3: 9;
/**
* Block compressed format storing 16 input pixels into 128 bits of output, consisting of 64 bits
* of alpha channel data (two 8 bit alpha values and a 4x4 3 bit lookup table) followed by 64 bits
* of color data (encoded the same way as DXT1).
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT5: 10;
/**
* 16-bit floating point RGB (16-bit float for each red, green and blue channels).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGB16F: 11;
/**
* 16-bit floating point RGBA (16-bit float for each red, green, blue and alpha channels).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA16F: 12;
/**
* 32-bit floating point RGB (32-bit float for each red, green and blue channels).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGB32F: 13;
/**
* 32-bit floating point RGBA (32-bit float for each red, green, blue and alpha channels).
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA32F: 14;
/**
* 32-bit floating point single channel format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R32F: 15;
/**
* A readable depth buffer format.
*
* @category Graphics
*/
declare const PIXELFORMAT_DEPTH: 16;
/**
* A readable depth/stencil buffer format.
*
* @category Graphics
*/
declare const PIXELFORMAT_DEPTHSTENCIL: 17;
/**
* A floating-point color-only format with 11 bits for red and green channels and 10 bits for the
* blue channel.
*
* @category Graphics
*/
declare const PIXELFORMAT_111110F: 18;
/**
* Color-only sRGB format.
*
* @category Graphics
*/
declare const PIXELFORMAT_SRGB8: 19;
/**
* Color sRGB format with additional alpha channel.
*
* @category Graphics
*/
declare const PIXELFORMAT_SRGBA8: 20;
/**
* ETC1 compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_ETC1: 21;
/**
* ETC2 (RGB) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_ETC2_RGB: 22;
/**
* ETC2 (RGBA) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_ETC2_RGBA: 23;
/**
* PVRTC (2BPP RGB) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_PVRTC_2BPP_RGB_1: 24;
/**
* PVRTC (2BPP RGBA) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_PVRTC_2BPP_RGBA_1: 25;
/**
* PVRTC (4BPP RGB) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_PVRTC_4BPP_RGB_1: 26;
/**
* PVRTC (4BPP RGBA) compressed format.
*
* @category Graphics
*/
declare const PIXELFORMAT_PVRTC_4BPP_RGBA_1: 27;
/**
* ATC compressed format with alpha channel in blocks of 4x4.
*
* @category Graphics
*/
declare const PIXELFORMAT_ASTC_4x4: 28;
/**
* ATC compressed format with no alpha channel.
*
* @category Graphics
*/
declare const PIXELFORMAT_ATC_RGB: 29;
/**
* ATC compressed format with alpha channel.
*
* @category Graphics
*/
declare const PIXELFORMAT_ATC_RGBA: 30;
/**
* 32-bit BGRA (8-bits for blue channel, 8 for green, 8 for red with 8-bit alpha). This is an
* internal format used by the WebGPU's backbuffer only.
*
* @ignore
* @category Graphics
*/
declare const PIXELFORMAT_BGRA8: 31;
/**
* 8-bit signed integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R8I: 32;
/**
* 8-bit unsigned integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R8U: 33;
/**
* 16-bit signed integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R16I: 34;
/**
* 16-bit unsigned integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R16U: 35;
/**
* 32-bit signed integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R32I: 36;
/**
* 32-bit unsigned integer single-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R32U: 37;
/**
* 8-bit per-channel signed integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG8I: 38;
/**
* 8-bit per-channel unsigned integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG8U: 39;
/**
* 16-bit per-channel signed integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG16I: 40;
/**
* 16-bit per-channel unsigned integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG16U: 41;
/**
* 32-bit per-channel signed integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG32I: 42;
/**
* 32-bit per-channel unsigned integer (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG32U: 43;
/**
* 8-bit per-channel signed integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA8I: 44;
/**
* 8-bit per-channel unsigned integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA8U: 45;
/**
* 16-bit per-channel signed integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA16I: 46;
/**
* 16-bit per-channel unsigned integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA16U: 47;
/**
* 32-bit per-channel signed integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA32I: 48;
/**
* 32-bit per-channel unsigned integer (RGBA) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RGBA32U: 49;
/**
* 16-bit floating point R (16-bit float for red channel).
*
* @category Graphics
*/
declare const PIXELFORMAT_R16F: 50;
/**
* 16-bit floating point RG (16-bit float for each red and green channels).
*
* @category Graphics
*/
declare const PIXELFORMAT_RG16F: 51;
/**
* 8-bit per-channel (R) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_R8: 52;
/**
* 8-bit per-channel (RG) format.
*
* @category Graphics
*/
declare const PIXELFORMAT_RG8: 53;
/**
* Format equivalent to {@link PIXELFORMAT_DXT1} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT1_SRGB: 54;
/**
* Format equivalent to {@link PIXELFORMAT_DXT3} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT3_SRGBA: 55;
/**
* Format equivalent to {@link PIXELFORMAT_DXT5} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_DXT5_SRGBA: 56;
/**
* Format equivalent to {@link PIXELFORMAT_ETC2_RGB} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_ETC2_SRGB: 61;
/**
* Format equivalent to {@link PIXELFORMAT_ETC2_RGBA} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_ETC2_SRGBA: 62;
/**
* Format equivalent to {@link PIXELFORMAT_ASTC_4x4} but sampled in linear color space.
*
* @category Graphics
*/
declare const PIXELFORMAT_ASTC_4x4_SRGB: 63;
/**
* 32-bit BGRA sRGB format. This is an internal format used by the WebGPU's backbuffer only.
*
* @ignore
* @category Graphics
*/
declare const PIXELFORMAT_SBGRA8: 64;
/**
* Compressed high dynamic range signed floating point format storing RGB values.
*
* @category Graphics
*/
declare const PIXELFORMAT_BC6F: 65;
/**
* Compressed high dynamic range unsigned floating point format storing RGB values.
*
* @category Graphics
*/
declare const PIXELFORMAT_BC6UF: 66;
/**
* Compressed 8-bit fixed-point data. Each 4x4 block of texels consists of 128 bits of RGBA data.
*
* @category Graphics
*/
declare const PIXELFORMAT_BC7: 67;
/**
* Compressed 8-bit fixed-point data. Each 4x4 block of texels consists of 128 bits of SRGB_ALPHA
* data.
*
* @category Graphics
*/
declare const PIXELFORMAT_BC7_SRGBA: 68;
/**
* A 16-bit depth buffer format.
*
* @category Graphics
*/
declare const PIXELFORMAT_DEPTH16: 69;
/**
* Information about pixel formats.
*
* ldr: whether the format is low dynamic range (LDR), which typically means it's not HDR, and uses
* sRGB color space to store the color values
* srgbFormat: the corresponding sRGB format (which automatically converts the sRGB value to linear)
*
* @type {Map<number, { name: string, size?: number, blockSize?: number, ldr?: boolean, srgb?: boolean, srgbFormat?: number, isInt?: boolean }>}
* @ignore
*/
declare const pixelFormatInfo: Map<number, {
name: string;
size?: number;
blockSize?: number;
ldr?: boolean;
srgb?: boolean;
srgbFormat?: number;
isInt?: boolean;
}>;
declare function isCompressedPixelFormat(format: any): boolean;
declare function isSrgbPixelFormat(format: any): boolean;
declare function isIntegerPixelFormat(format: any): boolean;
declare function pixelFormatLinearToGamma(format: number): number;
declare function pixelFormatGammaToLinear(format: number): number;
declare function requiresManualGamma(format: number): boolean;
declare function getPixelFormatArrayType(format: any): Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor;
/**
* List of distinct points.
*
* @category Graphics
*/
declare const PRIMITIVE_POINTS: 0;
/**
* Discrete list of line segments.
*
* @category Graphics
*/
declare const PRIMITIVE_LINES: 1;
/**
* List of points that are linked sequentially by line segments, with a closing line segment
* between the last and first points.
*
* @category Graphics
*/
declare const PRIMITIVE_LINELOOP: 2;
/**
* List of points that are linked sequentially by line segments.
*
* @category Graphics
*/
declare const PRIMITIVE_LINESTRIP: 3;
/**
* Discrete list of triangles.
*
* @category Graphics
*/
declare const PRIMITIVE_TRIANGLES: 4;
/**
* Connected strip of triangles where a specified vertex forms a triangle using the previous two.
*
* @category Graphics
*/
declare const PRIMITIVE_TRISTRIP: 5;
/**
* Connected fan of triangles where the first vertex forms triangles with the following pairs of vertices.
*
* @category Graphics
*/
declare const PRIMITIVE_TRIFAN: 6;
/**
* Vertex attribute to be treated as a position.
*
* @category Graphics
*/
declare const SEMANTIC_POSITION: "POSITION";
/**
* Vertex attribute to be treated as a normal.
*
* @category Graphics
*/
declare const SEMANTIC_NORMAL: "NORMAL";
/**
* Vertex attribute to be treated as a tangent.
*
* @category Graphics
*/
declare const SEMANTIC_TANGENT: "TANGENT";
/**
* Vertex attribute to be treated as skin blend weights.
*
* @category Graphics
*/
declare const SEMANTIC_BLENDWEIGHT: "BLENDWEIGHT";
/**
* Vertex attribute to be treated as skin blend indices.
*
* @category Graphics
*/
declare const SEMANTIC_BLENDINDICES: "BLENDINDICES";
/**
* Vertex attribute to be treated as a color.
*
* @category Graphics
*/
declare const SEMANTIC_COLOR: "COLOR";
declare const SEMANTIC_TEXCOORD: "TEXCOORD";
/**
* Vertex attribute to be treated as a texture coordinate (set 0).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD0: "TEXCOORD0";
/**
* Vertex attribute to be treated as a texture coordinate (set 1).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD1: "TEXCOORD1";
/**
* Vertex attribute to be treated as a texture coordinate (set 2).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD2: "TEXCOORD2";
/**
* Vertex attribute to be treated as a texture coordinate (set 3).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD3: "TEXCOORD3";
/**
* Vertex attribute to be treated as a texture coordinate (set 4).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD4: "TEXCOORD4";
/**
* Vertex attribute to be treated as a texture coordinate (set 5).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD5: "TEXCOORD5";
/**
* Vertex attribute to be treated as a texture coordinate (set 6).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD6: "TEXCOORD6";
/**
* Vertex attribute to be treated as a texture coordinate (set 7).
*
* @category Graphics
*/
declare const SEMANTIC_TEXCOORD7: "TEXCOORD7";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR0: "ATTR0";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR1: "ATTR1";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR2: "ATTR2";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR3: "ATTR3";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR4: "ATTR4";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR5: "ATTR5";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR6: "ATTR6";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR7: "ATTR7";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR8: "ATTR8";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR9: "ATTR9";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR10: "ATTR10";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR11: "ATTR11";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR12: "ATTR12";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR13: "ATTR13";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR14: "ATTR14";
/**
* Vertex attribute with a user defined semantic.
*
* @category Graphics
*/
declare const SEMANTIC_ATTR15: "ATTR15";
declare const SHADERTAG_MATERIAL: 1;
/**
* Don't change the stencil buffer value.
*
* @category Graphics
*/
declare const STENCILOP_KEEP: 0;
/**
* Set value to zero.
*
* @category Graphics
*/
declare const STENCILOP_ZERO: 1;
/**
* Replace value with the reference value (see {@link StencilParameters}).
*
* @category Graphics
*/
declare const STENCILOP_REPLACE: 2;
/**
* Increment the value.
*
* @category Graphics
*/
declare const STENCILOP_INCREMENT: 3;
/**
* Increment the value but wrap it to zero when it's larger than a maximum representable value.
*
* @category Graphics
*/
declare const STENCILOP_INCREMENTWRAP: 4;
/**
* Decrement the value.
*
* @category Graphics
*/
declare const STENCILOP_DECREMENT: 5;
/**
* Decrement the value but wrap it to a maximum representable value if the current value is 0.
*
* @category Graphics
*/
declare const STENCILOP_DECREMENTWRAP: 6;
/**
* Invert the value bitwise.
*
* @category Graphics
*/
declare const STENCILOP_INVERT: 7;
/**
* The texture is not in a locked state.
*
* @category Graphics
*/
declare const TEXTURELOCK_NONE: 0;
/**
* Read only. Any changes to the locked mip level's pixels will not update the texture.
*
* @category Graphics
*/
declare const TEXTURELOCK_READ: 1;
/**
* Write only. The contents of the specified mip level will be entirely replaced.
*
* @category Graphics
*/
declare const TEXTURELOCK_WRITE: 2;
/**
* Texture is a default type.
*
* @category Graphics
*/
declare const TEXTURETYPE_DEFAULT: "default";
/**
* Texture stores high dynamic range data in RGBM format.
*
* @category Graphics
*/
declare const TEXTURETYPE_RGBM: "rgbm";
/**
* Texture stores high dynamic range data in RGBE format.
*
* @category Graphics
*/
declare const TEXTURETYPE_RGBE: "rgbe";
/**
* Texture stores high dynamic range data in RGBP encoding.
*
* @category Graphics
*/
declare const TEXTURETYPE_RGBP: "rgbp";
/**
* Texture stores normalmap data swizzled in GGGR format. This is used for tangent space normal
* maps. The R component is stored in alpha and G is stored in RGB. This packing can result in
* higher quality when the texture data is compressed.
*
* @category Graphics
*/
declare const TEXTURETYPE_SWIZZLEGGGR: "swizzleGGGR";
declare const TEXHINT_NONE: 0;
declare const TEXHINT_SHADOWMAP: 1;
declare const TEXHINT_ASSET: 2;
declare const TEXHINT_LIGHTMAP: 3;
/**
* Texture data is stored in a 1-dimensional texture.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_1D: "1d";
/**
* Texture data is stored in a 2-dimensional texture.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_2D: "2d";
/**
* Texture data is stored in an array of 2-dimensional textures.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_2D_ARRAY: "2d-array";
/**
* Texture data is stored in a cube texture.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_CUBE: "cube";
/**
* Texture data is stored in an array of cube textures.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_CUBE_ARRAY: "cube-array";
/**
* Texture data is stored in a 3-dimensional texture.
*
* @category Graphics
*/
declare const TEXTUREDIMENSION_3D: "3d";
/**
* A sampler type of a texture that contains floating-point data. Typically stored for color
* textures, where data can be filtered.
*
* @category Graphics
*/
declare const SAMPLETYPE_FLOAT: 0;
/**
* A sampler type of a texture that contains floating-point data, but cannot be filtered. Typically
* used for textures storing data that cannot be interpolated.
*
* @category Graphics
*/
declare const SAMPLETYPE_UNFILTERABLE_FLOAT: 1;
/**
* A sampler type of a texture that contains depth data. Typically used for depth textures.
*
* @category Graphics
*/
declare const SAMPLETYPE_DEPTH: 2;
/**
* A sampler type of a texture that contains signed integer data.
*
* @category Graphics
*/
declare const SAMPLETYPE_INT: 3;
/**
* A sampler type of a texture that contains unsigned integer data.
*
* @category Graphics
*/
declare const SAMPLETYPE_UINT: 4;
/**
* Texture data is not stored a specific projection format.
*
* @category Graphics
*/
declare const TEXTUREPROJECTION_NONE: "none";
/**
* Texture data is stored in cubemap projection format.
*
* @category Graphics
*/
declare const TEXTUREPROJECTION_CUBE: "cube";
/**
* Texture data is stored in equirectangular projection format.
*
* @category Graphics
*/
declare const TEXTUREPROJECTION_EQUIRECT: "equirect";
/**
* Texture data is stored in octahedral projection format.
*
* @category Graphics
*/
declare const TEXTUREPROJECTION_OCTAHEDRAL: "octahedral";
/**
* Shader source code uses GLSL language.
*
* @category Graphics
*/
declare const SHADERLANGUAGE_GLSL: "glsl";
/**
* Shader source code uses WGSL language.
*
* @category Graphics
*/
declare const SHADERLANGUAGE_WGSL: "wgsl";
/**
* Signed byte vertex element type.
*
* @category Graphics
*/
declare const TYPE_INT8: 0;
/**
* Unsigned byte vertex element type.
*
* @category Graphics
*/
declare const TYPE_UINT8: 1;
/**
* Signed short vertex element type.
*
* @category Graphics
*/
declare const TYPE_INT16: 2;
/**
* Unsigned short vertex element type.
*
* @category Graphics
*/
declare const TYPE_UINT16: 3;
/**
* Signed integer vertex element type.
*
* @category Graphics
*/
declare const TYPE_INT32: 4;
/**
* Unsigned integer vertex element type.
*
* @category Graphics
*/
declare const TYPE_UINT32: 5;
/**
* Floating point vertex element type.
*
* @category Graphics
*/
declare const TYPE_FLOAT32: 6;
/**
* 16-bit floating point vertex element type.
*
* @category Graphics
*/
declare const TYPE_FLOAT16: 7;
/**
* Boolean uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_BOOL: 0;
/**
* Integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_INT: 1;
/**
* Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_FLOAT: 2;
/**
* 2 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_VEC2: 3;
/**
* 3 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_VEC3: 4;
/**
* 4 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_VEC4: 5;
/**
* 2 x Integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_IVEC2: 6;
/**
* 3 x Integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_IVEC3: 7;
/**
* 4 x Integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_IVEC4: 8;
/**
* 2 x Boolean uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_BVEC2: 9;
/**
* 3 x Boolean uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_BVEC3: 10;
/**
* 4 x Boolean uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_BVEC4: 11;
/**
* 2 x 2 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_MAT2: 12;
/**
* 3 x 3 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_MAT3: 13;
/**
* 4 x 4 x Float uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_MAT4: 14;
declare const UNIFORMTYPE_TEXTURE2D: 15;
declare const UNIFORMTYPE_TEXTURECUBE: 16;
declare const UNIFORMTYPE_FLOATARRAY: 17;
declare const UNIFORMTYPE_TEXTURE2D_SHADOW: 18;
declare const UNIFORMTYPE_TEXTURECUBE_SHADOW: 19;
declare const UNIFORMTYPE_TEXTURE3D: 20;
declare const UNIFORMTYPE_VEC2ARRAY: 21;
declare const UNIFORMTYPE_VEC3ARRAY: 22;
declare const UNIFORMTYPE_VEC4ARRAY: 23;
declare const UNIFORMTYPE_MAT4ARRAY: 24;
declare const UNIFORMTYPE_TEXTURE2D_ARRAY: 25;
/**
* Unsigned integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_UINT: 26;
/**
* 2 x Unsigned integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_UVEC2: 27;
/**
* 3 x Unsigned integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_UVEC3: 28;
/**
* 4 x Unsigned integer uniform type.
*
* @category Graphics
*/
declare const UNIFORMTYPE_UVEC4: 29;
declare const UNIFORMTYPE_INTARRAY: 30;
declare const UNIFORMTYPE_UINTARRAY: 31;
declare const UNIFORMTYPE_BOOLARRAY: 32;
declare const UNIFORMTYPE_IVEC2ARRAY: 33;
declare const UNIFORMTYPE_UVEC2ARRAY: 34;
declare const UNIFORMTYPE_BVEC2ARRAY: 35;
declare const UNIFORMTYPE_IVEC3ARRAY: 36;
declare const UNIFORMTYPE_UVEC3ARRAY: 37;
declare const UNIFORMTYPE_BVEC3ARRAY: 38;
declare const UNIFORMTYPE_IVEC4ARRAY: 39;
declare const UNIFORMTYPE_UVEC4ARRAY: 40;
declare const UNIFORMTYPE_BVEC4ARRAY: 41;
declare const UNIFORMTYPE_ITEXTURE2D: 42;
declare const UNIFORMTYPE_UTEXTURE2D: 43;
declare const UNIFORMTYPE_ITEXTURECUBE: 44;
declare const UNIFORMTYPE_UTEXTURECUBE: 45;
declare const UNIFORMTYPE_ITEXTURE3D: 46;
declare const UNIFORMTYPE_UTEXTURE3D: 47;
declare const UNIFORMTYPE_ITEXTURE2D_ARRAY: 48;
declare const UNIFORMTYPE_UTEXTURE2D_ARRAY: 49;
declare const uniformTypeToName: string[];
declare const uniformTypeToNameWGSL: string[][];
declare const uniformTypeToNameMapWGSL: Map<any, any>;
declare const uniformTypeToStorage: Uint8Array<ArrayBuffer>;
/**
* A WebGL 2 device type.
*
* @category Graphics
*/
declare const DEVICETYPE_WEBGL2: "webgl2";
/**
* A WebGPU device type.
*
* @category Graphics
*/
declare const DEVICETYPE_WEBGPU: "webgpu";
/**
* A Null device type.
*
* @category Graphics
*/
declare const DEVICETYPE_NULL: "null";
/**
* The resource is visible to the vertex shader.
*
* @category Graphics
*/
declare const SHADERSTAGE_VERTEX: 1;
/**
* The resource is visible to the fragment shader.
*
* @category Graphics
*/
declare const SHADERSTAGE_FRAGMENT: 2;
/**
* The resource is visible to the compute shader.
*
* @category Graphics
*/
declare const SHADERSTAGE_COMPUTE: 4;
/**
* Display format for low dynamic range data. This is always supported; however, due to the cost, it
* does not implement linear alpha blending on the main framebuffer. Instead, alpha blending occurs
* in sRGB space.
*
* @category Graphics
*/
declare const DISPLAYFORMAT_LDR: "ldr";
/**
* Display format for low dynamic range data in the sRGB color space. This format correctly
* implements linear alpha blending on the main framebuffer, with the alpha blending occurring in
* linear space. This is currently supported on WebGPU platform only. On unsupported platforms, it
* silently falls back to {@link DISPLAYFORMAT_LDR}.
*
* @category Graphics
*/
declare const DISPLAYFORMAT_LDR_SRGB: "ldr_srgb";
/**
* Display format for high dynamic range data, using 16bit floating point values.
* Note: This is supported on WebGPU platform only, and ignored on other platforms. On displays
* without HDR support, it silently falls back to {@link DISPLAYFORMAT_LDR}. Use
* {@link GraphicsDevice.isHdr} to see if the HDR format is used. When it is, it's recommended to
* use {@link TONEMAP_NONE} for the tonemapping mode, to avoid it clipping the high dynamic range.
*
* @category Graphics
*/
declare const DISPLAYFORMAT_HDR: "hdr";
declare const TEXPROPERTY_MIN_FILTER: 1;
declare const TEXPROPERTY_MAG_FILTER: 2;
declare const TEXPROPERTY_ADDRESS_U: 4;
declare const TEXPROPERTY_ADDRESS_V: 8;
declare const TEXPROPERTY_ADDRESS_W: 16;
declare const TEXPROPERTY_COMPARE_ON_READ: 32;
declare const TEXPROPERTY_COMPARE_FUNC: 64;
declare const TEXPROPERTY_ANISOTROPY: 128;
declare const TEXPROPERTY_ALL: 255;
declare const BINDGROUP_VIEW: 0;
declare const BINDGROUP_MESH: 1;
declare const BINDGROUP_MESH_UB: 2;
declare const bindGroupNames: string[];
declare const UNIFORM_BUFFER_DEFAULT_SLOT_NAME: "default";
declare const UNUSED_UNIFORM_NAME: "_unused_float_uniform";
declare const typedArrayTypes: (Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor)[];
declare const typedArrayTypesByteSize: number[];
declare const vertexTypesNames: string[];
declare namespace typedArrayToType {
export { TYPE_INT8 as Int8Array };
export { TYPE_UINT8 as Uint8Array };
export { TYPE_INT16 as Int16Array };
export { TYPE_UINT16 as Uint16Array };
export { TYPE_INT32 as Int32Array };
export { TYPE_UINT32 as Uint32Array };
export { TYPE_FLOAT32 as Float32Array };
}
declare const typedArrayIndexFormats: (Uint8ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor)[];
declare const typedArrayIndexFormatsByteSize: number[];
declare const primitiveGlslToWgslTypeMap: Map<string, string>;
/**
* Map of engine semantics into location on device in range 0..15 (note - semantics mapping to the
* same location cannot be used at the same time) organized in a way that ATTR0-ATTR7 do not
* overlap with common important semantics.
*
* @type {object}
* @ignore
* @category Graphics
*/
declare const semanticToLocation: object;
declare const ACTION_MOUSE: "mouse";
declare const ACTION_KEYBOARD: "keyboard";
declare const ACTION_GAMEPAD: "gamepad";
declare const AXIS_MOUSE_X: "mousex";
declare const AXIS_MOUSE_Y: "mousey";
declare const AXIS_PAD_L_X: "padlx";
declare const AXIS_PAD_L_Y: "padly";
declare const AXIS_PAD_R_X: "padrx";
declare const AXIS_PAD_R_Y: "padry";
declare const AXIS_KEY: "key";
/**
* @type {number}
* @category Input
*/
declare const KEY_BACKSPACE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_TAB: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_RETURN: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_ENTER: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SHIFT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_CONTROL: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_ALT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_PAUSE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_CAPS_LOCK: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_ESCAPE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SPACE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_PAGE_UP: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_PAGE_DOWN: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_END: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_HOME: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_LEFT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_UP: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_RIGHT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_DOWN: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_PRINT_SCREEN: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_INSERT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_DELETE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_0: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_1: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_2: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_3: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_4: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_5: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_6: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_7: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_8: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_9: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SEMICOLON: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_EQUAL: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_A: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_B: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_C: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_D: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_E: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_G: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_H: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_I: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_J: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_K: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_L: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_M: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_N: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_O: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_P: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_Q: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_R: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_S: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_T: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_U: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_V: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_W: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_X: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_Y: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_Z: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_WINDOWS: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_CONTEXT_MENU: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_0: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_1: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_2: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_3: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_4: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_5: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_6: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_7: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_8: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_NUMPAD_9: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_MULTIPLY: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_ADD: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SEPARATOR: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SUBTRACT: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_DECIMAL: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_DIVIDE: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F1: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F2: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F3: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F4: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F5: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F6: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F7: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F8: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F9: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F10: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F11: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_F12: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_COMMA: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_PERIOD: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_SLASH: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_OPEN_BRACKET: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_BACK_SLASH: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_CLOSE_BRACKET: number;
/**
* @type {number}
* @category Input
*/
declare const KEY_META: number;
/**
* No mouse buttons pressed.
*
* @category Input
*/
declare const MOUSEBUTTON_NONE: -1;
/**
* The left mouse button.
*
* @category Input
*/
declare const MOUSEBUTTON_LEFT: 0;
/**
* The middle mouse button.
*
* @category Input
*/
declare const MOUSEBUTTON_MIDDLE: 1;
/**
* The right mouse button.
*
* @category Input
*/
declare const MOUSEBUTTON_RIGHT: 2;
/**
* Index for pad 1.
*
* @category Input
*/
declare const PAD_1: 0;
/**
* Index for pad 2.
*
* @category Input
*/
declare const PAD_2: 1;
/**
* Index for pad 3.
*
* @category Input
*/
declare const PAD_3: 2;
/**
* Index for pad 4.
*
* @category Input
*/
declare const PAD_4: 3;
/**
* The first face button, from bottom going clockwise.
*
* @category Input
*/
declare const PAD_FACE_1: 0;
/**
* The second face button, from bottom going clockwise.
*
* @category Input
*/
declare const PAD_FACE_2: 1;
/**
* The third face button, from bottom going clockwise.
*
* @category Input
*/
declare const PAD_FACE_3: 2;
/**
* The fourth face button, from bottom going clockwise.
*
* @category Input
*/
declare const PAD_FACE_4: 3;
/**
* The first shoulder button on the left.
*
* @category Input
*/
declare const PAD_L_SHOULDER_1: 4;
/**
* The first shoulder button on the right.
*
* @category Input
*/
declare const PAD_R_SHOULDER_1: 5;
/**
* The second shoulder button on the left.
*
* @category Input
*/
declare const PAD_L_SHOULDER_2: 6;
/**
* The second shoulder button on the right.
*
* @category Input
*/
declare const PAD_R_SHOUL