From f62655af7452c20d9ce040caff7ed2430e1faf8b Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 2 Aug 2018 21:56:59 +0900 Subject: [PATCH 1/2] exposes webgl types to worker --- baselines/webworker.generated.d.ts | 890 +++++++++++++++++++++++++++++ inputfiles/idl/WebGL 1.widl | 17 +- src/expose.ts | 5 +- 3 files changed, 909 insertions(+), 3 deletions(-) diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 9c9dcaba1..78b5a4c3c 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -387,6 +387,21 @@ interface TextDecoderOptions { ignoreBOM?: boolean; } +interface WebGLContextAttributes { + alpha?: GLboolean; + antialias?: GLboolean; + depth?: GLboolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: GLboolean; + preserveDrawingBuffer?: GLboolean; + stencil?: GLboolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + interface EventListener { (evt: Event): void; } @@ -2581,6 +2596,867 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +interface WebGLActiveInfo { + readonly name: string; + readonly size: GLint; + readonly type: GLenum; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +}; + +interface WebGLBuffer extends WebGLObject { +} + +declare var WebGLBuffer: { + prototype: WebGLBuffer; + new(): WebGLBuffer; +}; + +interface WebGLContextEvent extends Event { + readonly statusMessage: string; +} + +declare var WebGLContextEvent: { + prototype: WebGLContextEvent; + new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; +}; + +interface WebGLFramebuffer extends WebGLObject { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +}; + +interface WebGLObject { +} + +declare var WebGLObject: { + prototype: WebGLObject; + new(): WebGLObject; +}; + +interface WebGLProgram extends WebGLObject { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +}; + +interface WebGLRenderbuffer extends WebGLObject { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +}; + +interface WebGLRenderingContext extends WebGLRenderingContextBase { +} + +declare var WebGLRenderingContext: { + prototype: WebGLRenderingContext; + new(): WebGLRenderingContext; + readonly ACTIVE_ATTRIBUTES: GLenum; + readonly ACTIVE_TEXTURE: GLenum; + readonly ACTIVE_UNIFORMS: GLenum; + readonly ALIASED_LINE_WIDTH_RANGE: GLenum; + readonly ALIASED_POINT_SIZE_RANGE: GLenum; + readonly ALPHA: GLenum; + readonly ALPHA_BITS: GLenum; + readonly ALWAYS: GLenum; + readonly ARRAY_BUFFER: GLenum; + readonly ARRAY_BUFFER_BINDING: GLenum; + readonly ATTACHED_SHADERS: GLenum; + readonly BACK: GLenum; + readonly BLEND: GLenum; + readonly BLEND_COLOR: GLenum; + readonly BLEND_DST_ALPHA: GLenum; + readonly BLEND_DST_RGB: GLenum; + readonly BLEND_EQUATION: GLenum; + readonly BLEND_EQUATION_ALPHA: GLenum; + readonly BLEND_EQUATION_RGB: GLenum; + readonly BLEND_SRC_ALPHA: GLenum; + readonly BLEND_SRC_RGB: GLenum; + readonly BLUE_BITS: GLenum; + readonly BOOL: GLenum; + readonly BOOL_VEC2: GLenum; + readonly BOOL_VEC3: GLenum; + readonly BOOL_VEC4: GLenum; + readonly BROWSER_DEFAULT_WEBGL: GLenum; + readonly BUFFER_SIZE: GLenum; + readonly BUFFER_USAGE: GLenum; + readonly BYTE: GLenum; + readonly CCW: GLenum; + readonly CLAMP_TO_EDGE: GLenum; + readonly COLOR_ATTACHMENT0: GLenum; + readonly COLOR_BUFFER_BIT: GLenum; + readonly COLOR_CLEAR_VALUE: GLenum; + readonly COLOR_WRITEMASK: GLenum; + readonly COMPILE_STATUS: GLenum; + readonly COMPRESSED_TEXTURE_FORMATS: GLenum; + readonly CONSTANT_ALPHA: GLenum; + readonly CONSTANT_COLOR: GLenum; + readonly CONTEXT_LOST_WEBGL: GLenum; + readonly CULL_FACE: GLenum; + readonly CULL_FACE_MODE: GLenum; + readonly CURRENT_PROGRAM: GLenum; + readonly CURRENT_VERTEX_ATTRIB: GLenum; + readonly CW: GLenum; + readonly DECR: GLenum; + readonly DECR_WRAP: GLenum; + readonly DELETE_STATUS: GLenum; + readonly DEPTH_ATTACHMENT: GLenum; + readonly DEPTH_BITS: GLenum; + readonly DEPTH_BUFFER_BIT: GLenum; + readonly DEPTH_CLEAR_VALUE: GLenum; + readonly DEPTH_COMPONENT: GLenum; + readonly DEPTH_COMPONENT16: GLenum; + readonly DEPTH_FUNC: GLenum; + readonly DEPTH_RANGE: GLenum; + readonly DEPTH_STENCIL: GLenum; + readonly DEPTH_STENCIL_ATTACHMENT: GLenum; + readonly DEPTH_TEST: GLenum; + readonly DEPTH_WRITEMASK: GLenum; + readonly DITHER: GLenum; + readonly DONT_CARE: GLenum; + readonly DST_ALPHA: GLenum; + readonly DST_COLOR: GLenum; + readonly DYNAMIC_DRAW: GLenum; + readonly ELEMENT_ARRAY_BUFFER: GLenum; + readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum; + readonly EQUAL: GLenum; + readonly FASTEST: GLenum; + readonly FLOAT: GLenum; + readonly FLOAT_MAT2: GLenum; + readonly FLOAT_MAT3: GLenum; + readonly FLOAT_MAT4: GLenum; + readonly FLOAT_VEC2: GLenum; + readonly FLOAT_VEC3: GLenum; + readonly FLOAT_VEC4: GLenum; + readonly FRAGMENT_SHADER: GLenum; + readonly FRAMEBUFFER: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum; + readonly FRAMEBUFFER_BINDING: GLenum; + readonly FRAMEBUFFER_COMPLETE: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_UNSUPPORTED: GLenum; + readonly FRONT: GLenum; + readonly FRONT_AND_BACK: GLenum; + readonly FRONT_FACE: GLenum; + readonly FUNC_ADD: GLenum; + readonly FUNC_REVERSE_SUBTRACT: GLenum; + readonly FUNC_SUBTRACT: GLenum; + readonly GENERATE_MIPMAP_HINT: GLenum; + readonly GEQUAL: GLenum; + readonly GREATER: GLenum; + readonly GREEN_BITS: GLenum; + readonly HIGH_FLOAT: GLenum; + readonly HIGH_INT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum; + readonly INCR: GLenum; + readonly INCR_WRAP: GLenum; + readonly INT: GLenum; + readonly INT_VEC2: GLenum; + readonly INT_VEC3: GLenum; + readonly INT_VEC4: GLenum; + readonly INVALID_ENUM: GLenum; + readonly INVALID_FRAMEBUFFER_OPERATION: GLenum; + readonly INVALID_OPERATION: GLenum; + readonly INVALID_VALUE: GLenum; + readonly INVERT: GLenum; + readonly KEEP: GLenum; + readonly LEQUAL: GLenum; + readonly LESS: GLenum; + readonly LINEAR: GLenum; + readonly LINEAR_MIPMAP_LINEAR: GLenum; + readonly LINEAR_MIPMAP_NEAREST: GLenum; + readonly LINES: GLenum; + readonly LINE_LOOP: GLenum; + readonly LINE_STRIP: GLenum; + readonly LINE_WIDTH: GLenum; + readonly LINK_STATUS: GLenum; + readonly LOW_FLOAT: GLenum; + readonly LOW_INT: GLenum; + readonly LUMINANCE: GLenum; + readonly LUMINANCE_ALPHA: GLenum; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum; + readonly MAX_RENDERBUFFER_SIZE: GLenum; + readonly MAX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_TEXTURE_SIZE: GLenum; + readonly MAX_VARYING_VECTORS: GLenum; + readonly MAX_VERTEX_ATTRIBS: GLenum; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum; + readonly MAX_VIEWPORT_DIMS: GLenum; + readonly MEDIUM_FLOAT: GLenum; + readonly MEDIUM_INT: GLenum; + readonly MIRRORED_REPEAT: GLenum; + readonly NEAREST: GLenum; + readonly NEAREST_MIPMAP_LINEAR: GLenum; + readonly NEAREST_MIPMAP_NEAREST: GLenum; + readonly NEVER: GLenum; + readonly NICEST: GLenum; + readonly NONE: GLenum; + readonly NOTEQUAL: GLenum; + readonly NO_ERROR: GLenum; + readonly ONE: GLenum; + readonly ONE_MINUS_CONSTANT_ALPHA: GLenum; + readonly ONE_MINUS_CONSTANT_COLOR: GLenum; + readonly ONE_MINUS_DST_ALPHA: GLenum; + readonly ONE_MINUS_DST_COLOR: GLenum; + readonly ONE_MINUS_SRC_ALPHA: GLenum; + readonly ONE_MINUS_SRC_COLOR: GLenum; + readonly OUT_OF_MEMORY: GLenum; + readonly PACK_ALIGNMENT: GLenum; + readonly POINTS: GLenum; + readonly POLYGON_OFFSET_FACTOR: GLenum; + readonly POLYGON_OFFSET_FILL: GLenum; + readonly POLYGON_OFFSET_UNITS: GLenum; + readonly RED_BITS: GLenum; + readonly RENDERBUFFER: GLenum; + readonly RENDERBUFFER_ALPHA_SIZE: GLenum; + readonly RENDERBUFFER_BINDING: GLenum; + readonly RENDERBUFFER_BLUE_SIZE: GLenum; + readonly RENDERBUFFER_DEPTH_SIZE: GLenum; + readonly RENDERBUFFER_GREEN_SIZE: GLenum; + readonly RENDERBUFFER_HEIGHT: GLenum; + readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum; + readonly RENDERBUFFER_RED_SIZE: GLenum; + readonly RENDERBUFFER_STENCIL_SIZE: GLenum; + readonly RENDERBUFFER_WIDTH: GLenum; + readonly RENDERER: GLenum; + readonly REPEAT: GLenum; + readonly REPLACE: GLenum; + readonly RGB: GLenum; + readonly RGB565: GLenum; + readonly RGB5_A1: GLenum; + readonly RGBA: GLenum; + readonly RGBA4: GLenum; + readonly SAMPLER_2D: GLenum; + readonly SAMPLER_CUBE: GLenum; + readonly SAMPLES: GLenum; + readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum; + readonly SAMPLE_BUFFERS: GLenum; + readonly SAMPLE_COVERAGE: GLenum; + readonly SAMPLE_COVERAGE_INVERT: GLenum; + readonly SAMPLE_COVERAGE_VALUE: GLenum; + readonly SCISSOR_BOX: GLenum; + readonly SCISSOR_TEST: GLenum; + readonly SHADER_TYPE: GLenum; + readonly SHADING_LANGUAGE_VERSION: GLenum; + readonly SHORT: GLenum; + readonly SRC_ALPHA: GLenum; + readonly SRC_ALPHA_SATURATE: GLenum; + readonly SRC_COLOR: GLenum; + readonly STATIC_DRAW: GLenum; + readonly STENCIL_ATTACHMENT: GLenum; + readonly STENCIL_BACK_FAIL: GLenum; + readonly STENCIL_BACK_FUNC: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_BACK_REF: GLenum; + readonly STENCIL_BACK_VALUE_MASK: GLenum; + readonly STENCIL_BACK_WRITEMASK: GLenum; + readonly STENCIL_BITS: GLenum; + readonly STENCIL_BUFFER_BIT: GLenum; + readonly STENCIL_CLEAR_VALUE: GLenum; + readonly STENCIL_FAIL: GLenum; + readonly STENCIL_FUNC: GLenum; + readonly STENCIL_INDEX8: GLenum; + readonly STENCIL_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_REF: GLenum; + readonly STENCIL_TEST: GLenum; + readonly STENCIL_VALUE_MASK: GLenum; + readonly STENCIL_WRITEMASK: GLenum; + readonly STREAM_DRAW: GLenum; + readonly SUBPIXEL_BITS: GLenum; + readonly TEXTURE: GLenum; + readonly TEXTURE0: GLenum; + readonly TEXTURE1: GLenum; + readonly TEXTURE10: GLenum; + readonly TEXTURE11: GLenum; + readonly TEXTURE12: GLenum; + readonly TEXTURE13: GLenum; + readonly TEXTURE14: GLenum; + readonly TEXTURE15: GLenum; + readonly TEXTURE16: GLenum; + readonly TEXTURE17: GLenum; + readonly TEXTURE18: GLenum; + readonly TEXTURE19: GLenum; + readonly TEXTURE2: GLenum; + readonly TEXTURE20: GLenum; + readonly TEXTURE21: GLenum; + readonly TEXTURE22: GLenum; + readonly TEXTURE23: GLenum; + readonly TEXTURE24: GLenum; + readonly TEXTURE25: GLenum; + readonly TEXTURE26: GLenum; + readonly TEXTURE27: GLenum; + readonly TEXTURE28: GLenum; + readonly TEXTURE29: GLenum; + readonly TEXTURE3: GLenum; + readonly TEXTURE30: GLenum; + readonly TEXTURE31: GLenum; + readonly TEXTURE4: GLenum; + readonly TEXTURE5: GLenum; + readonly TEXTURE6: GLenum; + readonly TEXTURE7: GLenum; + readonly TEXTURE8: GLenum; + readonly TEXTURE9: GLenum; + readonly TEXTURE_2D: GLenum; + readonly TEXTURE_BINDING_2D: GLenum; + readonly TEXTURE_BINDING_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum; + readonly TEXTURE_MAG_FILTER: GLenum; + readonly TEXTURE_MIN_FILTER: GLenum; + readonly TEXTURE_WRAP_S: GLenum; + readonly TEXTURE_WRAP_T: GLenum; + readonly TRIANGLES: GLenum; + readonly TRIANGLE_FAN: GLenum; + readonly TRIANGLE_STRIP: GLenum; + readonly UNPACK_ALIGNMENT: GLenum; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum; + readonly UNPACK_FLIP_Y_WEBGL: GLenum; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum; + readonly UNSIGNED_BYTE: GLenum; + readonly UNSIGNED_INT: GLenum; + readonly UNSIGNED_SHORT: GLenum; + readonly UNSIGNED_SHORT_4_4_4_4: GLenum; + readonly UNSIGNED_SHORT_5_5_5_1: GLenum; + readonly UNSIGNED_SHORT_5_6_5: GLenum; + readonly VALIDATE_STATUS: GLenum; + readonly VENDOR: GLenum; + readonly VERSION: GLenum; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum; + readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum; + readonly VERTEX_SHADER: GLenum; + readonly VIEWPORT: GLenum; + readonly ZERO: GLenum; +}; + +interface WebGLRenderingContextBase { + readonly drawingBufferHeight: GLsizei; + readonly drawingBufferWidth: GLsizei; + activeTexture(texture: GLenum): void; + attachShader(program: WebGLProgram, shader: WebGLShader): void; + bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; + bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; + bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; + bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + bindTexture(target: GLenum, texture: WebGLTexture | null): void; + blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + blendEquation(mode: GLenum): void; + blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; + blendFunc(sfactor: GLenum, dfactor: GLenum): void; + blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void; + bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; + checkFramebufferStatus(target: GLenum): GLenum; + clear(mask: GLbitfield): void; + clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + clearDepth(depth: GLclampf): void; + clearStencil(s: GLint): void; + colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; + compileShader(shader: WebGLShader): void; + compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; + compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; + copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; + copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + createBuffer(): WebGLBuffer | null; + createFramebuffer(): WebGLFramebuffer | null; + createProgram(): WebGLProgram | null; + createRenderbuffer(): WebGLRenderbuffer | null; + createShader(type: GLenum): WebGLShader | null; + createTexture(): WebGLTexture | null; + cullFace(mode: GLenum): void; + deleteBuffer(buffer: WebGLBuffer | null): void; + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + deleteProgram(program: WebGLProgram | null): void; + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + deleteShader(shader: WebGLShader | null): void; + deleteTexture(texture: WebGLTexture | null): void; + depthFunc(func: GLenum): void; + depthMask(flag: GLboolean): void; + depthRange(zNear: GLclampf, zFar: GLclampf): void; + detachShader(program: WebGLProgram, shader: WebGLShader): void; + disable(cap: GLenum): void; + disableVertexAttribArray(index: GLuint): void; + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; + enable(cap: GLenum): void; + enableVertexAttribArray(index: GLuint): void; + finish(): void; + flush(): void; + framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; + frontFace(mode: GLenum): void; + generateMipmap(target: GLenum): void; + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + getAttribLocation(program: WebGLProgram, name: string): GLint; + getBufferParameter(target: GLenum, pname: GLenum): any; + getContextAttributes(): WebGLContextAttributes | null; + getError(): GLenum; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; + getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; + getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; + getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; + getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; + getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; + getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; + getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; + getExtension(extensionName: string): any; + getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; + getParameter(pname: GLenum): any; + getProgramInfoLog(program: WebGLProgram): string | null; + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + getShaderInfoLog(shader: WebGLShader): string | null; + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; + getShaderSource(shader: WebGLShader): string | null; + getSupportedExtensions(): string[] | null; + getTexParameter(target: GLenum, pname: GLenum): any; + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; + getVertexAttrib(index: GLuint, pname: GLenum): any; + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + hint(target: GLenum, mode: GLenum): void; + isBuffer(buffer: WebGLBuffer | null): GLboolean; + isContextLost(): boolean; + isEnabled(cap: GLenum): GLboolean; + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + isProgram(program: WebGLProgram | null): GLboolean; + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + isShader(shader: WebGLShader | null): GLboolean; + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + linkProgram(program: WebGLProgram): void; + pixelStorei(pname: GLenum, param: GLint): void; + polygonOffset(factor: GLfloat, units: GLfloat): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; + sampleCoverage(value: GLclampf, invert: GLboolean): void; + scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + shaderSource(shader: WebGLShader, source: string): void; + stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; + stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; + stencilMask(mask: GLuint): void; + stencilMaskSeparate(face: GLenum, mask: GLuint): void; + stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; + stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + texParameteri(target: GLenum, pname: GLenum, param: GLint): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; + texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; + uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + useProgram(program: WebGLProgram | null): void; + validateProgram(program: WebGLProgram): void; + vertexAttrib1f(index: GLuint, x: GLfloat): void; + vertexAttrib1fv(index: GLuint, values: Float32List): void; + vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; + vertexAttrib2fv(index: GLuint, values: Float32List): void; + vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; + vertexAttrib3fv(index: GLuint, values: Float32List): void; + vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + vertexAttrib4fv(index: GLuint, values: Float32List): void; + vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; + viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + readonly ACTIVE_ATTRIBUTES: GLenum; + readonly ACTIVE_TEXTURE: GLenum; + readonly ACTIVE_UNIFORMS: GLenum; + readonly ALIASED_LINE_WIDTH_RANGE: GLenum; + readonly ALIASED_POINT_SIZE_RANGE: GLenum; + readonly ALPHA: GLenum; + readonly ALPHA_BITS: GLenum; + readonly ALWAYS: GLenum; + readonly ARRAY_BUFFER: GLenum; + readonly ARRAY_BUFFER_BINDING: GLenum; + readonly ATTACHED_SHADERS: GLenum; + readonly BACK: GLenum; + readonly BLEND: GLenum; + readonly BLEND_COLOR: GLenum; + readonly BLEND_DST_ALPHA: GLenum; + readonly BLEND_DST_RGB: GLenum; + readonly BLEND_EQUATION: GLenum; + readonly BLEND_EQUATION_ALPHA: GLenum; + readonly BLEND_EQUATION_RGB: GLenum; + readonly BLEND_SRC_ALPHA: GLenum; + readonly BLEND_SRC_RGB: GLenum; + readonly BLUE_BITS: GLenum; + readonly BOOL: GLenum; + readonly BOOL_VEC2: GLenum; + readonly BOOL_VEC3: GLenum; + readonly BOOL_VEC4: GLenum; + readonly BROWSER_DEFAULT_WEBGL: GLenum; + readonly BUFFER_SIZE: GLenum; + readonly BUFFER_USAGE: GLenum; + readonly BYTE: GLenum; + readonly CCW: GLenum; + readonly CLAMP_TO_EDGE: GLenum; + readonly COLOR_ATTACHMENT0: GLenum; + readonly COLOR_BUFFER_BIT: GLenum; + readonly COLOR_CLEAR_VALUE: GLenum; + readonly COLOR_WRITEMASK: GLenum; + readonly COMPILE_STATUS: GLenum; + readonly COMPRESSED_TEXTURE_FORMATS: GLenum; + readonly CONSTANT_ALPHA: GLenum; + readonly CONSTANT_COLOR: GLenum; + readonly CONTEXT_LOST_WEBGL: GLenum; + readonly CULL_FACE: GLenum; + readonly CULL_FACE_MODE: GLenum; + readonly CURRENT_PROGRAM: GLenum; + readonly CURRENT_VERTEX_ATTRIB: GLenum; + readonly CW: GLenum; + readonly DECR: GLenum; + readonly DECR_WRAP: GLenum; + readonly DELETE_STATUS: GLenum; + readonly DEPTH_ATTACHMENT: GLenum; + readonly DEPTH_BITS: GLenum; + readonly DEPTH_BUFFER_BIT: GLenum; + readonly DEPTH_CLEAR_VALUE: GLenum; + readonly DEPTH_COMPONENT: GLenum; + readonly DEPTH_COMPONENT16: GLenum; + readonly DEPTH_FUNC: GLenum; + readonly DEPTH_RANGE: GLenum; + readonly DEPTH_STENCIL: GLenum; + readonly DEPTH_STENCIL_ATTACHMENT: GLenum; + readonly DEPTH_TEST: GLenum; + readonly DEPTH_WRITEMASK: GLenum; + readonly DITHER: GLenum; + readonly DONT_CARE: GLenum; + readonly DST_ALPHA: GLenum; + readonly DST_COLOR: GLenum; + readonly DYNAMIC_DRAW: GLenum; + readonly ELEMENT_ARRAY_BUFFER: GLenum; + readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum; + readonly EQUAL: GLenum; + readonly FASTEST: GLenum; + readonly FLOAT: GLenum; + readonly FLOAT_MAT2: GLenum; + readonly FLOAT_MAT3: GLenum; + readonly FLOAT_MAT4: GLenum; + readonly FLOAT_VEC2: GLenum; + readonly FLOAT_VEC3: GLenum; + readonly FLOAT_VEC4: GLenum; + readonly FRAGMENT_SHADER: GLenum; + readonly FRAMEBUFFER: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum; + readonly FRAMEBUFFER_BINDING: GLenum; + readonly FRAMEBUFFER_COMPLETE: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_UNSUPPORTED: GLenum; + readonly FRONT: GLenum; + readonly FRONT_AND_BACK: GLenum; + readonly FRONT_FACE: GLenum; + readonly FUNC_ADD: GLenum; + readonly FUNC_REVERSE_SUBTRACT: GLenum; + readonly FUNC_SUBTRACT: GLenum; + readonly GENERATE_MIPMAP_HINT: GLenum; + readonly GEQUAL: GLenum; + readonly GREATER: GLenum; + readonly GREEN_BITS: GLenum; + readonly HIGH_FLOAT: GLenum; + readonly HIGH_INT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum; + readonly INCR: GLenum; + readonly INCR_WRAP: GLenum; + readonly INT: GLenum; + readonly INT_VEC2: GLenum; + readonly INT_VEC3: GLenum; + readonly INT_VEC4: GLenum; + readonly INVALID_ENUM: GLenum; + readonly INVALID_FRAMEBUFFER_OPERATION: GLenum; + readonly INVALID_OPERATION: GLenum; + readonly INVALID_VALUE: GLenum; + readonly INVERT: GLenum; + readonly KEEP: GLenum; + readonly LEQUAL: GLenum; + readonly LESS: GLenum; + readonly LINEAR: GLenum; + readonly LINEAR_MIPMAP_LINEAR: GLenum; + readonly LINEAR_MIPMAP_NEAREST: GLenum; + readonly LINES: GLenum; + readonly LINE_LOOP: GLenum; + readonly LINE_STRIP: GLenum; + readonly LINE_WIDTH: GLenum; + readonly LINK_STATUS: GLenum; + readonly LOW_FLOAT: GLenum; + readonly LOW_INT: GLenum; + readonly LUMINANCE: GLenum; + readonly LUMINANCE_ALPHA: GLenum; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum; + readonly MAX_RENDERBUFFER_SIZE: GLenum; + readonly MAX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_TEXTURE_SIZE: GLenum; + readonly MAX_VARYING_VECTORS: GLenum; + readonly MAX_VERTEX_ATTRIBS: GLenum; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum; + readonly MAX_VIEWPORT_DIMS: GLenum; + readonly MEDIUM_FLOAT: GLenum; + readonly MEDIUM_INT: GLenum; + readonly MIRRORED_REPEAT: GLenum; + readonly NEAREST: GLenum; + readonly NEAREST_MIPMAP_LINEAR: GLenum; + readonly NEAREST_MIPMAP_NEAREST: GLenum; + readonly NEVER: GLenum; + readonly NICEST: GLenum; + readonly NONE: GLenum; + readonly NOTEQUAL: GLenum; + readonly NO_ERROR: GLenum; + readonly ONE: GLenum; + readonly ONE_MINUS_CONSTANT_ALPHA: GLenum; + readonly ONE_MINUS_CONSTANT_COLOR: GLenum; + readonly ONE_MINUS_DST_ALPHA: GLenum; + readonly ONE_MINUS_DST_COLOR: GLenum; + readonly ONE_MINUS_SRC_ALPHA: GLenum; + readonly ONE_MINUS_SRC_COLOR: GLenum; + readonly OUT_OF_MEMORY: GLenum; + readonly PACK_ALIGNMENT: GLenum; + readonly POINTS: GLenum; + readonly POLYGON_OFFSET_FACTOR: GLenum; + readonly POLYGON_OFFSET_FILL: GLenum; + readonly POLYGON_OFFSET_UNITS: GLenum; + readonly RED_BITS: GLenum; + readonly RENDERBUFFER: GLenum; + readonly RENDERBUFFER_ALPHA_SIZE: GLenum; + readonly RENDERBUFFER_BINDING: GLenum; + readonly RENDERBUFFER_BLUE_SIZE: GLenum; + readonly RENDERBUFFER_DEPTH_SIZE: GLenum; + readonly RENDERBUFFER_GREEN_SIZE: GLenum; + readonly RENDERBUFFER_HEIGHT: GLenum; + readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum; + readonly RENDERBUFFER_RED_SIZE: GLenum; + readonly RENDERBUFFER_STENCIL_SIZE: GLenum; + readonly RENDERBUFFER_WIDTH: GLenum; + readonly RENDERER: GLenum; + readonly REPEAT: GLenum; + readonly REPLACE: GLenum; + readonly RGB: GLenum; + readonly RGB565: GLenum; + readonly RGB5_A1: GLenum; + readonly RGBA: GLenum; + readonly RGBA4: GLenum; + readonly SAMPLER_2D: GLenum; + readonly SAMPLER_CUBE: GLenum; + readonly SAMPLES: GLenum; + readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum; + readonly SAMPLE_BUFFERS: GLenum; + readonly SAMPLE_COVERAGE: GLenum; + readonly SAMPLE_COVERAGE_INVERT: GLenum; + readonly SAMPLE_COVERAGE_VALUE: GLenum; + readonly SCISSOR_BOX: GLenum; + readonly SCISSOR_TEST: GLenum; + readonly SHADER_TYPE: GLenum; + readonly SHADING_LANGUAGE_VERSION: GLenum; + readonly SHORT: GLenum; + readonly SRC_ALPHA: GLenum; + readonly SRC_ALPHA_SATURATE: GLenum; + readonly SRC_COLOR: GLenum; + readonly STATIC_DRAW: GLenum; + readonly STENCIL_ATTACHMENT: GLenum; + readonly STENCIL_BACK_FAIL: GLenum; + readonly STENCIL_BACK_FUNC: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_BACK_REF: GLenum; + readonly STENCIL_BACK_VALUE_MASK: GLenum; + readonly STENCIL_BACK_WRITEMASK: GLenum; + readonly STENCIL_BITS: GLenum; + readonly STENCIL_BUFFER_BIT: GLenum; + readonly STENCIL_CLEAR_VALUE: GLenum; + readonly STENCIL_FAIL: GLenum; + readonly STENCIL_FUNC: GLenum; + readonly STENCIL_INDEX8: GLenum; + readonly STENCIL_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_REF: GLenum; + readonly STENCIL_TEST: GLenum; + readonly STENCIL_VALUE_MASK: GLenum; + readonly STENCIL_WRITEMASK: GLenum; + readonly STREAM_DRAW: GLenum; + readonly SUBPIXEL_BITS: GLenum; + readonly TEXTURE: GLenum; + readonly TEXTURE0: GLenum; + readonly TEXTURE1: GLenum; + readonly TEXTURE10: GLenum; + readonly TEXTURE11: GLenum; + readonly TEXTURE12: GLenum; + readonly TEXTURE13: GLenum; + readonly TEXTURE14: GLenum; + readonly TEXTURE15: GLenum; + readonly TEXTURE16: GLenum; + readonly TEXTURE17: GLenum; + readonly TEXTURE18: GLenum; + readonly TEXTURE19: GLenum; + readonly TEXTURE2: GLenum; + readonly TEXTURE20: GLenum; + readonly TEXTURE21: GLenum; + readonly TEXTURE22: GLenum; + readonly TEXTURE23: GLenum; + readonly TEXTURE24: GLenum; + readonly TEXTURE25: GLenum; + readonly TEXTURE26: GLenum; + readonly TEXTURE27: GLenum; + readonly TEXTURE28: GLenum; + readonly TEXTURE29: GLenum; + readonly TEXTURE3: GLenum; + readonly TEXTURE30: GLenum; + readonly TEXTURE31: GLenum; + readonly TEXTURE4: GLenum; + readonly TEXTURE5: GLenum; + readonly TEXTURE6: GLenum; + readonly TEXTURE7: GLenum; + readonly TEXTURE8: GLenum; + readonly TEXTURE9: GLenum; + readonly TEXTURE_2D: GLenum; + readonly TEXTURE_BINDING_2D: GLenum; + readonly TEXTURE_BINDING_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum; + readonly TEXTURE_MAG_FILTER: GLenum; + readonly TEXTURE_MIN_FILTER: GLenum; + readonly TEXTURE_WRAP_S: GLenum; + readonly TEXTURE_WRAP_T: GLenum; + readonly TRIANGLES: GLenum; + readonly TRIANGLE_FAN: GLenum; + readonly TRIANGLE_STRIP: GLenum; + readonly UNPACK_ALIGNMENT: GLenum; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum; + readonly UNPACK_FLIP_Y_WEBGL: GLenum; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum; + readonly UNSIGNED_BYTE: GLenum; + readonly UNSIGNED_INT: GLenum; + readonly UNSIGNED_SHORT: GLenum; + readonly UNSIGNED_SHORT_4_4_4_4: GLenum; + readonly UNSIGNED_SHORT_5_5_5_1: GLenum; + readonly UNSIGNED_SHORT_5_6_5: GLenum; + readonly VALIDATE_STATUS: GLenum; + readonly VENDOR: GLenum; + readonly VERSION: GLenum; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum; + readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum; + readonly VERTEX_SHADER: GLenum; + readonly VIEWPORT: GLenum; + readonly ZERO: GLenum; +} + +interface WebGLShader extends WebGLObject { +} + +declare var WebGLShader: { + prototype: WebGLShader; + new(): WebGLShader; +}; + +interface WebGLShaderPrecisionFormat { + readonly precision: GLint; + readonly rangeMax: GLint; + readonly rangeMin: GLint; +} + +declare var WebGLShaderPrecisionFormat: { + prototype: WebGLShaderPrecisionFormat; + new(): WebGLShaderPrecisionFormat; +}; + +interface WebGLTexture extends WebGLObject { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +}; + +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +}; + interface WebSocketEventMap { "close": CloseEvent; "error": Event; @@ -2960,6 +3836,19 @@ type AlgorithmIdentifier = string | Algorithm; type HashAlgorithmIdentifier = AlgorithmIdentifier; type BigInteger = Uint8Array; type NamedCurve = string; +type GLenum = number; +type GLboolean = boolean; +type GLbitfield = number; +type GLint = number; +type GLsizei = number; +type GLintptr = number; +type GLsizeiptr = number; +type GLuint = number; +type GLfloat = number; +type GLclampf = number; +type TexImageSource = ImageBitmap | ImageData; +type Float32List = Float32Array | GLfloat[]; +type Int32List = Int32Array | GLint[]; type BufferSource = ArrayBufferView | ArrayBuffer; type DOMTimeStamp = number; type FormDataEntryValue = File | string; @@ -2987,5 +3876,6 @@ type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaquer type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant"; type ServiceWorkerUpdateViaCache = "imports" | "all" | "none"; type VisibilityState = "hidden" | "visible" | "prerender"; +type WebGLPowerPreference = "default" | "low-power" | "high-performance"; type WorkerType = "classic" | "module"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/inputfiles/idl/WebGL 1.widl b/inputfiles/idl/WebGL 1.widl index 4c5f92b28..a6df3de6b 100644 --- a/inputfiles/idl/WebGL 1.widl +++ b/inputfiles/idl/WebGL 1.widl @@ -56,36 +56,46 @@ dictionary WebGLContextAttributes { GLboolean failIfMajorPerformanceCaveat = false; }; +[Exposed=(Window,Worker)] interface WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLBuffer : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLFramebuffer : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLProgram : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLRenderbuffer : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLShader : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLTexture : WebGLObject { }; +[Exposed=(Window,Worker)] interface WebGLUniformLocation { }; +[Exposed=(Window,Worker)] interface WebGLActiveInfo { readonly attribute GLint size; readonly attribute GLenum type; readonly attribute DOMString name; }; +[Exposed=(Window,Worker)] interface WebGLShaderPrecisionFormat { readonly attribute GLint rangeMin; readonly attribute GLint rangeMax; @@ -522,7 +532,7 @@ interface mixin WebGLRenderingContextBase const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; - readonly attribute HTMLCanvasElement canvas; + [Exposed=Window] readonly attribute HTMLCanvasElement canvas; readonly attribute GLsizei drawingBufferWidth; readonly attribute GLsizei drawingBufferHeight; @@ -730,13 +740,16 @@ interface mixin WebGLRenderingContextBase void viewport(GLint x, GLint y, GLsizei width, GLsizei height); }; +[Exposed=(Window,Worker)] interface WebGLRenderingContext { }; WebGLRenderingContext includes WebGLRenderingContextBase; -[Constructor(DOMString type, optional WebGLContextEventInit eventInit)] +[Exposed=(Window,Worker), + Constructor(DOMString type, + optional WebGLContextEventInit eventInit)] interface WebGLContextEvent : Event { readonly attribute DOMString statusMessage; }; diff --git a/src/expose.ts b/src/expose.ts index 9cfa7e6c2..e10df9b39 100644 --- a/src/expose.ts +++ b/src/expose.ts @@ -26,7 +26,10 @@ export function getExposedTypes(webidl: Browser.WebIdl, target: string, forceKno if (webidl["callback-interfaces"]) filtered["callback-interfaces"]!.interface = filterProperties(webidl["callback-interfaces"]!.interface, isKnownName); if (webidl.dictionaries) filtered.dictionaries!.dictionary = filterProperties(webidl.dictionaries.dictionary, isKnownName); if (webidl.enums) filtered.enums!.enum = filterProperties(webidl.enums.enum, isKnownName); - if (webidl.mixins) filtered.mixins!.mixin = filterProperties(webidl.mixins.mixin, isKnownName); + if (webidl.mixins) { + const mixins = filter(webidl.mixins.mixin, o => exposesTo(o, target)); + filtered.mixins!.mixin = filterProperties(mixins, isKnownName); + } return deepFilterUnexposedTypes(filtered, unexposedTypes); } From 90503866900b8e05978de0040c7c7e2daf2fed83 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Fri, 17 Aug 2018 14:33:11 +0900 Subject: [PATCH 2/2] fetch extensions --- baselines/dom.generated.d.ts | 262 +++----- baselines/webworker.generated.d.ts | 169 +++++ inputfiles/addedTypes.json | 625 ++---------------- .../idl/WebGL ANGLE_instanced_arrays.widl | 7 + inputfiles/idl/WebGL EXT_blend_minmax.widl | 5 + inputfiles/idl/WebGL EXT_frag_depth.widl | 3 + inputfiles/idl/WebGL EXT_sRGB.widl | 7 + .../idl/WebGL EXT_shader_texture_lod.widl | 3 + .../WebGL EXT_texture_filter_anisotropic.widl | 5 + .../idl/WebGL OES_element_index_uint.widl | 3 + .../idl/WebGL OES_standard_derivatives.widl | 4 + inputfiles/idl/WebGL OES_texture_float.widl | 2 + .../idl/WebGL OES_texture_float_linear.widl | 2 + .../idl/WebGL OES_texture_half_float.widl | 4 + .../WebGL OES_texture_half_float_linear.widl | 2 + .../idl/WebGL OES_vertex_array_object.widl | 13 + .../idl/WebGL WEBGL_color_buffer_float.widl | 6 + .../WebGL WEBGL_compressed_texture_astc.widl | 36 + .../WebGL WEBGL_compressed_texture_s3tc.widl | 8 + ...GL WEBGL_compressed_texture_s3tc_srgb.widl | 8 + .../idl/WebGL WEBGL_debug_renderer_info.widl | 7 + inputfiles/idl/WebGL WEBGL_debug_shaders.widl | 6 + inputfiles/idl/WebGL WEBGL_depth_texture.widl | 4 + inputfiles/idl/WebGL WEBGL_draw_buffers.widl | 41 ++ inputfiles/idl/WebGL WEBGL_lose_context.widl | 5 + inputfiles/idlSources.json | 88 +++ 26 files changed, 604 insertions(+), 721 deletions(-) create mode 100644 inputfiles/idl/WebGL ANGLE_instanced_arrays.widl create mode 100644 inputfiles/idl/WebGL EXT_blend_minmax.widl create mode 100644 inputfiles/idl/WebGL EXT_frag_depth.widl create mode 100644 inputfiles/idl/WebGL EXT_sRGB.widl create mode 100644 inputfiles/idl/WebGL EXT_shader_texture_lod.widl create mode 100644 inputfiles/idl/WebGL EXT_texture_filter_anisotropic.widl create mode 100644 inputfiles/idl/WebGL OES_element_index_uint.widl create mode 100644 inputfiles/idl/WebGL OES_standard_derivatives.widl create mode 100644 inputfiles/idl/WebGL OES_texture_float.widl create mode 100644 inputfiles/idl/WebGL OES_texture_float_linear.widl create mode 100644 inputfiles/idl/WebGL OES_texture_half_float.widl create mode 100644 inputfiles/idl/WebGL OES_texture_half_float_linear.widl create mode 100644 inputfiles/idl/WebGL OES_vertex_array_object.widl create mode 100644 inputfiles/idl/WebGL WEBGL_color_buffer_float.widl create mode 100644 inputfiles/idl/WebGL WEBGL_compressed_texture_astc.widl create mode 100644 inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc.widl create mode 100644 inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc_srgb.widl create mode 100644 inputfiles/idl/WebGL WEBGL_debug_renderer_info.widl create mode 100644 inputfiles/idl/WebGL WEBGL_debug_shaders.widl create mode 100644 inputfiles/idl/WebGL WEBGL_depth_texture.widl create mode 100644 inputfiles/idl/WebGL WEBGL_draw_buffers.widl create mode 100644 inputfiles/idl/WebGL WEBGL_lose_context.widl diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d912d196e..3d92944bc 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1570,18 +1570,12 @@ interface EventListener { } interface ANGLE_instanced_arrays { - drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; - drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; - vertexAttribDivisorANGLE(index: number, divisor: number): void; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; + drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; + drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; + vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum; } -declare var ANGLE_instanced_arrays: { - prototype: ANGLE_instanced_arrays; - new(): ANGLE_instanced_arrays; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; -}; - interface AbortController { /** * Returns the AbortSignal object associated with this object. @@ -4601,35 +4595,28 @@ declare var DynamicsCompressorNode: { }; interface EXT_blend_minmax { - readonly MAX_EXT: number; - readonly MIN_EXT: number; + readonly MAX_EXT: GLenum; + readonly MIN_EXT: GLenum; } interface EXT_frag_depth { } interface EXT_sRGB { - readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number; - readonly SRGB8_ALPHA8_EXT: number; - readonly SRGB_ALPHA_EXT: number; - readonly SRGB_EXT: number; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum; + readonly SRGB8_ALPHA8_EXT: GLenum; + readonly SRGB_ALPHA_EXT: GLenum; + readonly SRGB_EXT: GLenum; } interface EXT_shader_texture_lod { } interface EXT_texture_filter_anisotropic { - readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; - readonly TEXTURE_MAX_ANISOTROPY_EXT: number; + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum; + readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum; } -declare var EXT_texture_filter_anisotropic: { - prototype: EXT_texture_filter_anisotropic; - new(): EXT_texture_filter_anisotropic; - readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; - readonly TEXTURE_MAX_ANISOTROPY_EXT: number; -}; - interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; @@ -10530,61 +10517,29 @@ declare var Notification: { interface OES_element_index_uint { } -declare var OES_element_index_uint: { - prototype: OES_element_index_uint; - new(): OES_element_index_uint; -}; - interface OES_standard_derivatives { - readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum; } -declare var OES_standard_derivatives: { - prototype: OES_standard_derivatives; - new(): OES_standard_derivatives; - readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; -}; - interface OES_texture_float { } -declare var OES_texture_float: { - prototype: OES_texture_float; - new(): OES_texture_float; -}; - interface OES_texture_float_linear { } -declare var OES_texture_float_linear: { - prototype: OES_texture_float_linear; - new(): OES_texture_float_linear; -}; - interface OES_texture_half_float { - readonly HALF_FLOAT_OES: number; + readonly HALF_FLOAT_OES: GLenum; } -declare var OES_texture_half_float: { - prototype: OES_texture_half_float; - new(): OES_texture_half_float; - readonly HALF_FLOAT_OES: number; -}; - interface OES_texture_half_float_linear { } -declare var OES_texture_half_float_linear: { - prototype: OES_texture_half_float_linear; - new(): OES_texture_half_float_linear; -}; - interface OES_vertex_array_object { - readonly VERTEX_ARRAY_BINDING_OES: number; - bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void; - createVertexArrayOES(): WebGLVertexArrayObjectOES; - deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void; - isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES; + bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; + deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; + readonly VERTEX_ARRAY_BINDING_OES: GLenum; } interface OfflineAudioCompletionEvent extends Event { @@ -15095,129 +15050,106 @@ declare var VideoTrackList: { }; interface WEBGL_color_buffer_float { - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number; - readonly RGB32F_EXT: number; - readonly RGBA32F_EXT: number; - readonly UNSIGNED_NORMALIZED_EXT: number; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum; + readonly RGBA32F_EXT: GLenum; + readonly UNSIGNED_NORMALIZED_EXT: GLenum; } interface WEBGL_compressed_texture_astc { - readonly COMPRESSED_RGBA_ASTC_10x10_KHR: number; - readonly COMPRESSED_RGBA_ASTC_10x5_KHR: number; - readonly COMPRESSED_RGBA_ASTC_10x6_KHR: number; - readonly COMPRESSED_RGBA_ASTC_10x8_KHR: number; - readonly COMPRESSED_RGBA_ASTC_12x10_KHR: number; - readonly COMPRESSED_RGBA_ASTC_12x12_KHR: number; - readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number; - readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number; - readonly COMPRESSED_RGBA_ASTC_5x5_KHR: number; - readonly COMPRESSED_RGBA_ASTC_6x5_KHR: number; - readonly COMPRESSED_RGBA_ASTC_6x6_KHR: number; - readonly COMPRESSED_RGBA_ASTC_8x5_KHR: number; - readonly COMPRESSED_RGBA_ASTC_8x6_KHR: number; - readonly COMPRESSED_RGBA_ASTC_8x8_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number; getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum; } interface WEBGL_compressed_texture_s3tc { - readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number; - readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number; - readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number; - readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number; + readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum; + readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum; + readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum; + readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum; } -declare var WEBGL_compressed_texture_s3tc: { - prototype: WEBGL_compressed_texture_s3tc; - new(): WEBGL_compressed_texture_s3tc; - readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number; - readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number; - readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number; - readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number; -}; - interface WEBGL_compressed_texture_s3tc_srgb { - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number; - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number; - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number; - readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum; + readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum; } interface WEBGL_debug_renderer_info { - readonly UNMASKED_RENDERER_WEBGL: number; - readonly UNMASKED_VENDOR_WEBGL: number; + readonly UNMASKED_RENDERER_WEBGL: GLenum; + readonly UNMASKED_VENDOR_WEBGL: GLenum; } -declare var WEBGL_debug_renderer_info: { - prototype: WEBGL_debug_renderer_info; - new(): WEBGL_debug_renderer_info; - readonly UNMASKED_RENDERER_WEBGL: number; - readonly UNMASKED_VENDOR_WEBGL: number; -}; - interface WEBGL_debug_shaders { getTranslatedShaderSource(shader: WebGLShader): string; } interface WEBGL_depth_texture { - readonly UNSIGNED_INT_24_8_WEBGL: number; + readonly UNSIGNED_INT_24_8_WEBGL: GLenum; } -declare var WEBGL_depth_texture: { - prototype: WEBGL_depth_texture; - new(): WEBGL_depth_texture; - readonly UNSIGNED_INT_24_8_WEBGL: number; -}; - interface WEBGL_draw_buffers { - readonly COLOR_ATTACHMENT0_WEBGL: number; - readonly COLOR_ATTACHMENT10_WEBGL: number; - readonly COLOR_ATTACHMENT11_WEBGL: number; - readonly COLOR_ATTACHMENT12_WEBGL: number; - readonly COLOR_ATTACHMENT13_WEBGL: number; - readonly COLOR_ATTACHMENT14_WEBGL: number; - readonly COLOR_ATTACHMENT15_WEBGL: number; - readonly COLOR_ATTACHMENT1_WEBGL: number; - readonly COLOR_ATTACHMENT2_WEBGL: number; - readonly COLOR_ATTACHMENT3_WEBGL: number; - readonly COLOR_ATTACHMENT4_WEBGL: number; - readonly COLOR_ATTACHMENT5_WEBGL: number; - readonly COLOR_ATTACHMENT6_WEBGL: number; - readonly COLOR_ATTACHMENT7_WEBGL: number; - readonly COLOR_ATTACHMENT8_WEBGL: number; - readonly COLOR_ATTACHMENT9_WEBGL: number; - readonly DRAW_BUFFER0_WEBGL: number; - readonly DRAW_BUFFER10_WEBGL: number; - readonly DRAW_BUFFER11_WEBGL: number; - readonly DRAW_BUFFER12_WEBGL: number; - readonly DRAW_BUFFER13_WEBGL: number; - readonly DRAW_BUFFER14_WEBGL: number; - readonly DRAW_BUFFER15_WEBGL: number; - readonly DRAW_BUFFER1_WEBGL: number; - readonly DRAW_BUFFER2_WEBGL: number; - readonly DRAW_BUFFER3_WEBGL: number; - readonly DRAW_BUFFER4_WEBGL: number; - readonly DRAW_BUFFER5_WEBGL: number; - readonly DRAW_BUFFER6_WEBGL: number; - readonly DRAW_BUFFER7_WEBGL: number; - readonly DRAW_BUFFER8_WEBGL: number; - readonly DRAW_BUFFER9_WEBGL: number; - readonly MAX_COLOR_ATTACHMENTS_WEBGL: number; - readonly MAX_DRAW_BUFFERS_WEBGL: number; - drawBuffersWEBGL(buffers: number[]): void; + drawBuffersWEBGL(buffers: GLenum[]): void; + readonly COLOR_ATTACHMENT0_WEBGL: GLenum; + readonly COLOR_ATTACHMENT10_WEBGL: GLenum; + readonly COLOR_ATTACHMENT11_WEBGL: GLenum; + readonly COLOR_ATTACHMENT12_WEBGL: GLenum; + readonly COLOR_ATTACHMENT13_WEBGL: GLenum; + readonly COLOR_ATTACHMENT14_WEBGL: GLenum; + readonly COLOR_ATTACHMENT15_WEBGL: GLenum; + readonly COLOR_ATTACHMENT1_WEBGL: GLenum; + readonly COLOR_ATTACHMENT2_WEBGL: GLenum; + readonly COLOR_ATTACHMENT3_WEBGL: GLenum; + readonly COLOR_ATTACHMENT4_WEBGL: GLenum; + readonly COLOR_ATTACHMENT5_WEBGL: GLenum; + readonly COLOR_ATTACHMENT6_WEBGL: GLenum; + readonly COLOR_ATTACHMENT7_WEBGL: GLenum; + readonly COLOR_ATTACHMENT8_WEBGL: GLenum; + readonly COLOR_ATTACHMENT9_WEBGL: GLenum; + readonly DRAW_BUFFER0_WEBGL: GLenum; + readonly DRAW_BUFFER10_WEBGL: GLenum; + readonly DRAW_BUFFER11_WEBGL: GLenum; + readonly DRAW_BUFFER12_WEBGL: GLenum; + readonly DRAW_BUFFER13_WEBGL: GLenum; + readonly DRAW_BUFFER14_WEBGL: GLenum; + readonly DRAW_BUFFER15_WEBGL: GLenum; + readonly DRAW_BUFFER1_WEBGL: GLenum; + readonly DRAW_BUFFER2_WEBGL: GLenum; + readonly DRAW_BUFFER3_WEBGL: GLenum; + readonly DRAW_BUFFER4_WEBGL: GLenum; + readonly DRAW_BUFFER5_WEBGL: GLenum; + readonly DRAW_BUFFER6_WEBGL: GLenum; + readonly DRAW_BUFFER7_WEBGL: GLenum; + readonly DRAW_BUFFER8_WEBGL: GLenum; + readonly DRAW_BUFFER9_WEBGL: GLenum; + readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum; + readonly MAX_DRAW_BUFFERS_WEBGL: GLenum; } interface WEBGL_lose_context { @@ -16119,7 +16051,7 @@ declare var WebGLUniformLocation: { new(): WebGLUniformLocation; }; -interface WebGLVertexArrayObjectOES { +interface WebGLVertexArrayObjectOES extends WebGLObject { } interface WebKitPoint { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 78b5a4c3c..630e7a37a 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -406,6 +406,13 @@ interface EventListener { (evt: Event): void; } +interface ANGLE_instanced_arrays { + drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; + drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; + vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum; +} + interface AbortController { /** * Returns the AbortSignal object associated with this object. @@ -997,6 +1004,29 @@ interface DhKeyGenParams extends Algorithm { prime: Uint8Array; } +interface EXT_blend_minmax { + readonly MAX_EXT: GLenum; + readonly MIN_EXT: GLenum; +} + +interface EXT_frag_depth { +} + +interface EXT_sRGB { + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum; + readonly SRGB8_ALPHA8_EXT: GLenum; + readonly SRGB_ALPHA_EXT: GLenum; + readonly SRGB_EXT: GLenum; +} + +interface EXT_shader_texture_lod { +} + +interface EXT_texture_filter_anisotropic { + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum; + readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum; +} + interface ErrorEvent extends Event { readonly colno: number; readonly error: any; @@ -1989,6 +2019,34 @@ declare var NotificationEvent: { new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; }; +interface OES_element_index_uint { +} + +interface OES_standard_derivatives { + readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum; +} + +interface OES_texture_float { +} + +interface OES_texture_float_linear { +} + +interface OES_texture_half_float { + readonly HALF_FLOAT_OES: GLenum; +} + +interface OES_texture_half_float_linear { +} + +interface OES_vertex_array_object { + bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; + deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; + readonly VERTEX_ARRAY_BINDING_OES: GLenum; +} + interface Path2D extends CanvasPath { addPath(path: Path2D, transform?: DOMMatrix2DInit): void; } @@ -2596,6 +2654,114 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +interface WEBGL_color_buffer_float { + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum; + readonly RGBA32F_EXT: GLenum; + readonly UNSIGNED_NORMALIZED_EXT: GLenum; +} + +interface WEBGL_compressed_texture_astc { + getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum; +} + +interface WEBGL_compressed_texture_s3tc { + readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum; + readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum; + readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum; + readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum; +} + +interface WEBGL_compressed_texture_s3tc_srgb { + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum; + readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum; +} + +interface WEBGL_debug_renderer_info { + readonly UNMASKED_RENDERER_WEBGL: GLenum; + readonly UNMASKED_VENDOR_WEBGL: GLenum; +} + +interface WEBGL_debug_shaders { + getTranslatedShaderSource(shader: WebGLShader): string; +} + +interface WEBGL_depth_texture { + readonly UNSIGNED_INT_24_8_WEBGL: GLenum; +} + +interface WEBGL_draw_buffers { + drawBuffersWEBGL(buffers: GLenum[]): void; + readonly COLOR_ATTACHMENT0_WEBGL: GLenum; + readonly COLOR_ATTACHMENT10_WEBGL: GLenum; + readonly COLOR_ATTACHMENT11_WEBGL: GLenum; + readonly COLOR_ATTACHMENT12_WEBGL: GLenum; + readonly COLOR_ATTACHMENT13_WEBGL: GLenum; + readonly COLOR_ATTACHMENT14_WEBGL: GLenum; + readonly COLOR_ATTACHMENT15_WEBGL: GLenum; + readonly COLOR_ATTACHMENT1_WEBGL: GLenum; + readonly COLOR_ATTACHMENT2_WEBGL: GLenum; + readonly COLOR_ATTACHMENT3_WEBGL: GLenum; + readonly COLOR_ATTACHMENT4_WEBGL: GLenum; + readonly COLOR_ATTACHMENT5_WEBGL: GLenum; + readonly COLOR_ATTACHMENT6_WEBGL: GLenum; + readonly COLOR_ATTACHMENT7_WEBGL: GLenum; + readonly COLOR_ATTACHMENT8_WEBGL: GLenum; + readonly COLOR_ATTACHMENT9_WEBGL: GLenum; + readonly DRAW_BUFFER0_WEBGL: GLenum; + readonly DRAW_BUFFER10_WEBGL: GLenum; + readonly DRAW_BUFFER11_WEBGL: GLenum; + readonly DRAW_BUFFER12_WEBGL: GLenum; + readonly DRAW_BUFFER13_WEBGL: GLenum; + readonly DRAW_BUFFER14_WEBGL: GLenum; + readonly DRAW_BUFFER15_WEBGL: GLenum; + readonly DRAW_BUFFER1_WEBGL: GLenum; + readonly DRAW_BUFFER2_WEBGL: GLenum; + readonly DRAW_BUFFER3_WEBGL: GLenum; + readonly DRAW_BUFFER4_WEBGL: GLenum; + readonly DRAW_BUFFER5_WEBGL: GLenum; + readonly DRAW_BUFFER6_WEBGL: GLenum; + readonly DRAW_BUFFER7_WEBGL: GLenum; + readonly DRAW_BUFFER8_WEBGL: GLenum; + readonly DRAW_BUFFER9_WEBGL: GLenum; + readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum; + readonly MAX_DRAW_BUFFERS_WEBGL: GLenum; +} + +interface WEBGL_lose_context { + loseContext(): void; + restoreContext(): void; +} + interface WebGLActiveInfo { readonly name: string; readonly size: GLint; @@ -3457,6 +3623,9 @@ declare var WebGLUniformLocation: { new(): WebGLUniformLocation; }; +interface WebGLVertexArrayObjectOES extends WebGLObject { +} + interface WebSocketEventMap { "close": CloseEvent; "error": Event; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 3d97c2ac6..4308f8a44 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1272,70 +1272,6 @@ ] } }, - "EXT_blend_minmax": { - "name": "EXT_blend_minmax", - "exposed": "Window", - "properties": { - "property": { - "MIN_EXT": { - "name": "MIN_EXT", - "read-only": 1, - "override-type": "number" - }, - "MAX_EXT": { - "name": "MAX_EXT", - "read-only": 1, - "override-type": "number" - } - } - }, - "no-interface-object": "1" - }, - "EXT_frag_depth": { - "name": "EXT_frag_depth", - "exposed": "Window", - "properties": { - "property": {} - }, - "no-interface-object": "1" - }, - "EXT_shader_texture_lod": { - "name": "EXT_shader_texture_lod", - "exposed": "Window", - "properties": { - "property": {} - }, - "no-interface-object": "1" - }, - "EXT_sRGB": { - "name": "EXT_sRGB", - "exposed": "Window", - "properties": { - "property": { - "SRGB_EXT": { - "name": "SRGB_EXT", - "read-only": 1, - "override-type": "number" - }, - "SRGB_ALPHA_EXT": { - "name": "SRGB_ALPHA_EXT", - "read-only": 1, - "override-type": "number" - }, - "SRGB8_ALPHA8_EXT": { - "name": "SRGB8_ALPHA8_EXT", - "read-only": 1, - "override-type": "number" - }, - "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT": { - "name": "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT", - "read-only": 1, - "override-type": "number" - } - } - }, - "no-interface-object": "1" - }, "DOMTokenList": { "name": "DOMTokenList", "exposed": "Window", @@ -1350,498 +1286,6 @@ } } }, - "OES_vertex_array_object": { - "name": "OES_vertex_array_object", - "exposed": "Window", - "properties": { - "property": { - "VERTEX_ARRAY_BINDING_OES": { - "name": "VERTEX_ARRAY_BINDING_OES", - "read-only": 1, - "override-type": "number" - } - } - }, - "methods": { - "method": { - "createVertexArrayOES": { - "name": "createVertexArrayOES", - "override-signatures": [ - "createVertexArrayOES(): WebGLVertexArrayObjectOES" - ] - }, - "deleteVertexArrayOES": { - "name": "deleteVertexArrayOES", - "override-signatures": [ - "deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void" - ] - }, - "isVertexArrayOES": { - "name": "isVertexArrayOES", - "override-signatures": [ - "isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES" - ] - }, - "bindVertexArrayOES": { - "name": "bindVertexArrayOES", - "override-signatures": [ - "bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void" - ] - } - } - }, - "no-interface-object": "1" - }, - "WebGLVertexArrayObjectOES": { - "name": "WebGLVertexArrayObjectOES", - "exposed": "Window", - "properties": { - "property": {} - }, - "no-interface-object": "1" - }, - "WEBGL_color_buffer_float": { - "name": "WEBGL_color_buffer_float", - "exposed": "Window", - "properties": { - "property": { - "RGBA32F_EXT": { - "name": "RGBA32F_EXT", - "read-only": 1, - "override-type": "number" - }, - "RGB32F_EXT": { - "name": "RGB32F_EXT", - "read-only": 1, - "override-type": "number" - }, - "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT": { - "name": "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT", - "read-only": 1, - "override-type": "number" - }, - "UNSIGNED_NORMALIZED_EXT": { - "name": "UNSIGNED_NORMALIZED_EXT", - "read-only": 1, - "override-type": "number" - } - } - }, - "no-interface-object": "1" - }, - "WEBGL_compressed_texture_astc": { - "name": "WEBGL_compressed_texture_astc", - "exposed": "Window", - "properties": { - "property": { - "COMPRESSED_RGBA_ASTC_4x4_KHR": { - "name": "COMPRESSED_RGBA_ASTC_4x4_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_5x4_KHR": { - "name": "COMPRESSED_RGBA_ASTC_5x4_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_5x5_KHR": { - "name": "COMPRESSED_RGBA_ASTC_5x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_6x5_KHR": { - "name": "COMPRESSED_RGBA_ASTC_6x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_6x6_KHR": { - "name": "COMPRESSED_RGBA_ASTC_6x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_8x5_KHR": { - "name": "COMPRESSED_RGBA_ASTC_8x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_8x6_KHR": { - "name": "COMPRESSED_RGBA_ASTC_8x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_8x8_KHR": { - "name": "COMPRESSED_RGBA_ASTC_8x8_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_10x5_KHR": { - "name": "COMPRESSED_RGBA_ASTC_10x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_10x6_KHR": { - "name": "COMPRESSED_RGBA_ASTC_10x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_10x8_KHR": { - "name": "COMPRESSED_RGBA_ASTC_10x8_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_10x10_KHR": { - "name": "COMPRESSED_RGBA_ASTC_10x10_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_12x10_KHR": { - "name": "COMPRESSED_RGBA_ASTC_12x10_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_RGBA_ASTC_12x12_KHR": { - "name": "COMPRESSED_RGBA_ASTC_12x12_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR": { - "name": "COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR", - "read-only": 1, - "override-type": "number" - } - } - }, - "methods": { - "method": { - "getSupportedProfiles": { - "name": "getSupportedProfiles", - "override-signatures": [ - "getSupportedProfiles(): string[]" - ] - } - } - }, - "no-interface-object": "1" - }, - "WEBGL_compressed_texture_s3tc_srgb": { - "name": "WEBGL_compressed_texture_s3tc_srgb", - "exposed": "Window", - "properties": { - "property": { - "COMPRESSED_SRGB_S3TC_DXT1_EXT": { - "name": "COMPRESSED_SRGB_S3TC_DXT1_EXT", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT": { - "name": "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT": { - "name": "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT", - "read-only": 1, - "override-type": "number" - }, - "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT": { - "name": "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT", - "read-only": 1, - "override-type": "number" - } - } - }, - "no-interface-object": "1" - }, - "WEBGL_debug_shaders": { - "name": "WEBGL_debug_shaders", - "exposed": "Window", - "methods": { - "method": { - "getTranslatedShaderSource": { - "name": "getTranslatedShaderSource", - "override-signatures": [ - "getTranslatedShaderSource(shader: WebGLShader): string" - ] - } - } - }, - "no-interface-object": "1" - }, - "WEBGL_draw_buffers": { - "name": "WEBGL_draw_buffers", - "exposed": "Window", - "properties": { - "property": { - "COLOR_ATTACHMENT0_WEBGL": { - "name": "COLOR_ATTACHMENT0_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT1_WEBGL": { - "name": "COLOR_ATTACHMENT1_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT2_WEBGL": { - "name": "COLOR_ATTACHMENT2_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT3_WEBGL": { - "name": "COLOR_ATTACHMENT3_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT4_WEBGL": { - "name": "COLOR_ATTACHMENT4_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT5_WEBGL": { - "name": "COLOR_ATTACHMENT5_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT6_WEBGL": { - "name": "COLOR_ATTACHMENT6_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT7_WEBGL": { - "name": "COLOR_ATTACHMENT7_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT8_WEBGL": { - "name": "COLOR_ATTACHMENT8_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT9_WEBGL": { - "name": "COLOR_ATTACHMENT9_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT10_WEBGL": { - "name": "COLOR_ATTACHMENT10_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT11_WEBGL": { - "name": "COLOR_ATTACHMENT11_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT12_WEBGL": { - "name": "COLOR_ATTACHMENT12_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT13_WEBGL": { - "name": "COLOR_ATTACHMENT13_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT14_WEBGL": { - "name": "COLOR_ATTACHMENT14_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "COLOR_ATTACHMENT15_WEBGL": { - "name": "COLOR_ATTACHMENT15_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER0_WEBGL": { - "name": "DRAW_BUFFER0_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER1_WEBGL": { - "name": "DRAW_BUFFER1_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER2_WEBGL": { - "name": "DRAW_BUFFER2_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER3_WEBGL": { - "name": "DRAW_BUFFER3_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER4_WEBGL": { - "name": "DRAW_BUFFER4_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER5_WEBGL": { - "name": "DRAW_BUFFER5_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER6_WEBGL": { - "name": "DRAW_BUFFER6_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER7_WEBGL": { - "name": "DRAW_BUFFER7_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER8_WEBGL": { - "name": "DRAW_BUFFER8_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER9_WEBGL": { - "name": "DRAW_BUFFER9_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER10_WEBGL": { - "name": "DRAW_BUFFER10_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER11_WEBGL": { - "name": "DRAW_BUFFER11_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER12_WEBGL": { - "name": "DRAW_BUFFER12_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER13_WEBGL": { - "name": "DRAW_BUFFER13_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER14_WEBGL": { - "name": "DRAW_BUFFER14_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "DRAW_BUFFER15_WEBGL": { - "name": "DRAW_BUFFER15_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "MAX_COLOR_ATTACHMENTS_WEBGL": { - "name": "MAX_COLOR_ATTACHMENTS_WEBGL", - "read-only": 1, - "override-type": "number" - }, - "MAX_DRAW_BUFFERS_WEBGL": { - "name": "MAX_DRAW_BUFFERS_WEBGL", - "read-only": 1, - "override-type": "number" - } - } - }, - "methods": { - "method": { - "drawBuffersWEBGL": { - "name": "drawBuffersWEBGL", - "override-signatures": [ - "drawBuffersWEBGL(buffers: number[]): void" - ] - } - } - }, - "no-interface-object": "1" - }, - "WEBGL_lose_context": { - "name": "WEBGL_lose_context", - "exposed": "Window", - "methods": { - "method": { - "loseContext": { - "name": "loseContext", - "override-signatures": [ - "loseContext(): void" - ] - }, - "restoreContext": { - "name": "restoreContext", - "override-signatures": [ - "restoreContext(): void" - ] - } - } - }, - "no-interface-object": "1" - }, "HTMLObjectElement": { "name": "HTMLObjectElement", "properties": { @@ -2473,6 +1917,75 @@ } } } + }, + "EXT_blend_minmax": { + "override-exposed": "Window Worker" + }, + "EXT_texture_filter_anisotropic": { + "override-exposed": "Window Worker" + }, + "EXT_frag_depth": { + "override-exposed": "Window Worker" + }, + "EXT_shader_texture_lod": { + "override-exposed": "Window Worker" + }, + "EXT_sRGB": { + "override-exposed": "Window Worker" + }, + "OES_vertex_array_object": { + "override-exposed": "Window Worker" + }, + "WEBGL_color_buffer_float": { + "override-exposed": "Window Worker" + }, + "WEBGL_compressed_texture_astc": { + "override-exposed": "Window Worker" + }, + "WEBGL_compressed_texture_s3tc_srgb": { + "override-exposed": "Window Worker" + }, + "WEBGL_debug_shaders": { + "override-exposed": "Window Worker" + }, + "WEBGL_draw_buffers": { + "override-exposed": "Window Worker" + }, + "WEBGL_lose_context": { + "override-exposed": "Window Worker" + }, + "WEBGL_depth_texture": { + "override-exposed": "Window Worker" + }, + "WEBGL_debug_renderer_info": { + "override-exposed": "Window Worker" + }, + "WEBGL_compressed_texture_s3tc": { + "override-exposed": "Window Worker" + }, + "OES_texture_half_float_linear": { + "override-exposed": "Window Worker" + }, + "OES_texture_half_float": { + "override-exposed": "Window Worker" + }, + "OES_texture_float_linear": { + "override-exposed": "Window Worker" + }, + "OES_texture_float": { + "override-exposed": "Window Worker" + }, + "OES_standard_derivatives": { + "override-exposed": "Window Worker" + }, + "OES_element_index_uint": { + "override-exposed": "Window Worker" + }, + "ANGLE_instanced_arrays": { + "override-exposed": "Window Worker" + }, + "WebGLVertexArrayObjectOES": { + "override-exposed": "Window Worker" } } }, diff --git a/inputfiles/idl/WebGL ANGLE_instanced_arrays.widl b/inputfiles/idl/WebGL ANGLE_instanced_arrays.widl new file mode 100644 index 000000000..523735525 --- /dev/null +++ b/inputfiles/idl/WebGL ANGLE_instanced_arrays.widl @@ -0,0 +1,7 @@ +[NoInterfaceObject] +interface ANGLE_instanced_arrays { + const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; + void drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); + void drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount); + void vertexAttribDivisorANGLE(GLuint index, GLuint divisor); +}; diff --git a/inputfiles/idl/WebGL EXT_blend_minmax.widl b/inputfiles/idl/WebGL EXT_blend_minmax.widl new file mode 100644 index 000000000..f63e542fa --- /dev/null +++ b/inputfiles/idl/WebGL EXT_blend_minmax.widl @@ -0,0 +1,5 @@ +[NoInterfaceObject] +interface EXT_blend_minmax { + const GLenum MIN_EXT = 0x8007; + const GLenum MAX_EXT = 0x8008; +}; diff --git a/inputfiles/idl/WebGL EXT_frag_depth.widl b/inputfiles/idl/WebGL EXT_frag_depth.widl new file mode 100644 index 000000000..60145f35f --- /dev/null +++ b/inputfiles/idl/WebGL EXT_frag_depth.widl @@ -0,0 +1,3 @@ +[NoInterfaceObject] +interface EXT_frag_depth { +}; diff --git a/inputfiles/idl/WebGL EXT_sRGB.widl b/inputfiles/idl/WebGL EXT_sRGB.widl new file mode 100644 index 000000000..a00d72159 --- /dev/null +++ b/inputfiles/idl/WebGL EXT_sRGB.widl @@ -0,0 +1,7 @@ +[NoInterfaceObject] +interface EXT_sRGB { + const GLenum SRGB_EXT = 0x8C40; + const GLenum SRGB_ALPHA_EXT = 0x8C42; + const GLenum SRGB8_ALPHA8_EXT = 0x8C43; + const GLenum FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210; +}; diff --git a/inputfiles/idl/WebGL EXT_shader_texture_lod.widl b/inputfiles/idl/WebGL EXT_shader_texture_lod.widl new file mode 100644 index 000000000..fcb5fd09a --- /dev/null +++ b/inputfiles/idl/WebGL EXT_shader_texture_lod.widl @@ -0,0 +1,3 @@ +[NoInterfaceObject] +interface EXT_shader_texture_lod { +}; diff --git a/inputfiles/idl/WebGL EXT_texture_filter_anisotropic.widl b/inputfiles/idl/WebGL EXT_texture_filter_anisotropic.widl new file mode 100644 index 000000000..1b7dc756a --- /dev/null +++ b/inputfiles/idl/WebGL EXT_texture_filter_anisotropic.widl @@ -0,0 +1,5 @@ +[NoInterfaceObject] +interface EXT_texture_filter_anisotropic { + const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; + const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; +}; diff --git a/inputfiles/idl/WebGL OES_element_index_uint.widl b/inputfiles/idl/WebGL OES_element_index_uint.widl new file mode 100644 index 000000000..a8e72d6fd --- /dev/null +++ b/inputfiles/idl/WebGL OES_element_index_uint.widl @@ -0,0 +1,3 @@ +[NoInterfaceObject] +interface OES_element_index_uint { +}; diff --git a/inputfiles/idl/WebGL OES_standard_derivatives.widl b/inputfiles/idl/WebGL OES_standard_derivatives.widl new file mode 100644 index 000000000..8054b1234 --- /dev/null +++ b/inputfiles/idl/WebGL OES_standard_derivatives.widl @@ -0,0 +1,4 @@ +[NoInterfaceObject] +interface OES_standard_derivatives { + const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; +}; diff --git a/inputfiles/idl/WebGL OES_texture_float.widl b/inputfiles/idl/WebGL OES_texture_float.widl new file mode 100644 index 000000000..c5cbc04b5 --- /dev/null +++ b/inputfiles/idl/WebGL OES_texture_float.widl @@ -0,0 +1,2 @@ +[NoInterfaceObject] +interface OES_texture_float { }; diff --git a/inputfiles/idl/WebGL OES_texture_float_linear.widl b/inputfiles/idl/WebGL OES_texture_float_linear.widl new file mode 100644 index 000000000..58b168e5d --- /dev/null +++ b/inputfiles/idl/WebGL OES_texture_float_linear.widl @@ -0,0 +1,2 @@ +[NoInterfaceObject] +interface OES_texture_float_linear { }; diff --git a/inputfiles/idl/WebGL OES_texture_half_float.widl b/inputfiles/idl/WebGL OES_texture_half_float.widl new file mode 100644 index 000000000..97c43b5df --- /dev/null +++ b/inputfiles/idl/WebGL OES_texture_half_float.widl @@ -0,0 +1,4 @@ +[NoInterfaceObject] +interface OES_texture_half_float { + const GLenum HALF_FLOAT_OES = 0x8D61; +}; diff --git a/inputfiles/idl/WebGL OES_texture_half_float_linear.widl b/inputfiles/idl/WebGL OES_texture_half_float_linear.widl new file mode 100644 index 000000000..86d2fc108 --- /dev/null +++ b/inputfiles/idl/WebGL OES_texture_half_float_linear.widl @@ -0,0 +1,2 @@ +[NoInterfaceObject] +interface OES_texture_half_float_linear { }; diff --git a/inputfiles/idl/WebGL OES_vertex_array_object.widl b/inputfiles/idl/WebGL OES_vertex_array_object.widl new file mode 100644 index 000000000..31e39fce6 --- /dev/null +++ b/inputfiles/idl/WebGL OES_vertex_array_object.widl @@ -0,0 +1,13 @@ +[NoInterfaceObject] +interface WebGLVertexArrayObjectOES : WebGLObject { +}; + +[NoInterfaceObject] +interface OES_vertex_array_object { + const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5; + + WebGLVertexArrayObjectOES? createVertexArrayOES(); + void deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); + [WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); + void bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); +}; diff --git a/inputfiles/idl/WebGL WEBGL_color_buffer_float.widl b/inputfiles/idl/WebGL WEBGL_color_buffer_float.widl new file mode 100644 index 000000000..bda538bfe --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_color_buffer_float.widl @@ -0,0 +1,6 @@ +[NoInterfaceObject] +interface WEBGL_color_buffer_float { + const GLenum RGBA32F_EXT = 0x8814; + const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; + const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17; +}; // interface WEBGL_color_buffer_float diff --git a/inputfiles/idl/WebGL WEBGL_compressed_texture_astc.widl b/inputfiles/idl/WebGL WEBGL_compressed_texture_astc.widl new file mode 100644 index 000000000..86ac81146 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_compressed_texture_astc.widl @@ -0,0 +1,36 @@ +[NoInterfaceObject] +interface WEBGL_compressed_texture_astc { + /* Compressed Texture Format */ + const GLenum COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; + const GLenum COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; + const GLenum COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; + const GLenum COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; + const GLenum COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; + const GLenum COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; + const GLenum COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; + const GLenum COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; + const GLenum COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; + const GLenum COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; + const GLenum COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; + const GLenum COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; + const GLenum COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; + const GLenum COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; + + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; + + // Profile query support. + sequence getSupportedProfiles(); +}; diff --git a/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc.widl b/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc.widl new file mode 100644 index 000000000..900a712a1 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc.widl @@ -0,0 +1,8 @@ +[NoInterfaceObject] +interface WEBGL_compressed_texture_s3tc { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; + const GLenum COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; + const GLenum COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; + const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; +}; diff --git a/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc_srgb.widl b/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc_srgb.widl new file mode 100644 index 000000000..3a9be0616 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_compressed_texture_s3tc_srgb.widl @@ -0,0 +1,8 @@ +[NoInterfaceObject] +interface WEBGL_compressed_texture_s3tc_srgb { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; +}; diff --git a/inputfiles/idl/WebGL WEBGL_debug_renderer_info.widl b/inputfiles/idl/WebGL WEBGL_debug_renderer_info.widl new file mode 100644 index 000000000..49bdac602 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_debug_renderer_info.widl @@ -0,0 +1,7 @@ +[NoInterfaceObject] +interface WEBGL_debug_renderer_info { + + const GLenum UNMASKED_VENDOR_WEBGL = 0x9245; + const GLenum UNMASKED_RENDERER_WEBGL = 0x9246; + +}; diff --git a/inputfiles/idl/WebGL WEBGL_debug_shaders.widl b/inputfiles/idl/WebGL WEBGL_debug_shaders.widl new file mode 100644 index 000000000..b72c40b21 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_debug_shaders.widl @@ -0,0 +1,6 @@ +[NoInterfaceObject] +interface WEBGL_debug_shaders { + + DOMString getTranslatedShaderSource(WebGLShader shader); + +}; diff --git a/inputfiles/idl/WebGL WEBGL_depth_texture.widl b/inputfiles/idl/WebGL WEBGL_depth_texture.widl new file mode 100644 index 000000000..d25ccf1f2 --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_depth_texture.widl @@ -0,0 +1,4 @@ +[NoInterfaceObject] +interface WEBGL_depth_texture { + const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA; +}; diff --git a/inputfiles/idl/WebGL WEBGL_draw_buffers.widl b/inputfiles/idl/WebGL WEBGL_draw_buffers.widl new file mode 100644 index 000000000..35362c27b --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_draw_buffers.widl @@ -0,0 +1,41 @@ +[NoInterfaceObject] +interface WEBGL_draw_buffers { + const GLenum COLOR_ATTACHMENT0_WEBGL = 0x8CE0; + const GLenum COLOR_ATTACHMENT1_WEBGL = 0x8CE1; + const GLenum COLOR_ATTACHMENT2_WEBGL = 0x8CE2; + const GLenum COLOR_ATTACHMENT3_WEBGL = 0x8CE3; + const GLenum COLOR_ATTACHMENT4_WEBGL = 0x8CE4; + const GLenum COLOR_ATTACHMENT5_WEBGL = 0x8CE5; + const GLenum COLOR_ATTACHMENT6_WEBGL = 0x8CE6; + const GLenum COLOR_ATTACHMENT7_WEBGL = 0x8CE7; + const GLenum COLOR_ATTACHMENT8_WEBGL = 0x8CE8; + const GLenum COLOR_ATTACHMENT9_WEBGL = 0x8CE9; + const GLenum COLOR_ATTACHMENT10_WEBGL = 0x8CEA; + const GLenum COLOR_ATTACHMENT11_WEBGL = 0x8CEB; + const GLenum COLOR_ATTACHMENT12_WEBGL = 0x8CEC; + const GLenum COLOR_ATTACHMENT13_WEBGL = 0x8CED; + const GLenum COLOR_ATTACHMENT14_WEBGL = 0x8CEE; + const GLenum COLOR_ATTACHMENT15_WEBGL = 0x8CEF; + + const GLenum DRAW_BUFFER0_WEBGL = 0x8825; + const GLenum DRAW_BUFFER1_WEBGL = 0x8826; + const GLenum DRAW_BUFFER2_WEBGL = 0x8827; + const GLenum DRAW_BUFFER3_WEBGL = 0x8828; + const GLenum DRAW_BUFFER4_WEBGL = 0x8829; + const GLenum DRAW_BUFFER5_WEBGL = 0x882A; + const GLenum DRAW_BUFFER6_WEBGL = 0x882B; + const GLenum DRAW_BUFFER7_WEBGL = 0x882C; + const GLenum DRAW_BUFFER8_WEBGL = 0x882D; + const GLenum DRAW_BUFFER9_WEBGL = 0x882E; + const GLenum DRAW_BUFFER10_WEBGL = 0x882F; + const GLenum DRAW_BUFFER11_WEBGL = 0x8830; + const GLenum DRAW_BUFFER12_WEBGL = 0x8831; + const GLenum DRAW_BUFFER13_WEBGL = 0x8832; + const GLenum DRAW_BUFFER14_WEBGL = 0x8833; + const GLenum DRAW_BUFFER15_WEBGL = 0x8834; + + const GLenum MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; + const GLenum MAX_DRAW_BUFFERS_WEBGL = 0x8824; + + void drawBuffersWEBGL(sequence buffers); +}; diff --git a/inputfiles/idl/WebGL WEBGL_lose_context.widl b/inputfiles/idl/WebGL WEBGL_lose_context.widl new file mode 100644 index 000000000..069807ffe --- /dev/null +++ b/inputfiles/idl/WebGL WEBGL_lose_context.widl @@ -0,0 +1,5 @@ +[NoInterfaceObject] +interface WEBGL_lose_context { + void loseContext(); + void restoreContext(); +}; diff --git a/inputfiles/idlSources.json b/inputfiles/idlSources.json index 01f1d440e..75d34d951 100644 --- a/inputfiles/idlSources.json +++ b/inputfiles/idlSources.json @@ -254,6 +254,94 @@ "url": "https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl", "title": "WebGL 1" }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/", + "title": "WebGL ANGLE_instanced_arrays" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/", + "title": "WebGL EXT_blend_minmax" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/", + "title": "WebGL EXT_frag_depth" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/", + "title": "WebGL EXT_shader_texture_lod" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/", + "title": "WebGL EXT_texture_filter_anisotropic" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/", + "title": "WebGL EXT_sRGB" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/", + "title": "WebGL OES_element_index_uint" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/", + "title": "WebGL OES_standard_derivatives" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/", + "title": "WebGL OES_texture_half_float" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/", + "title": "WebGL OES_texture_half_float_linear" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_texture_float/", + "title": "WebGL OES_texture_float" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/", + "title": "WebGL OES_texture_float_linear" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/", + "title": "WebGL OES_vertex_array_object" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/", + "title": "WebGL WEBGL_color_buffer_float" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_astc/", + "title": "WebGL WEBGL_compressed_texture_astc" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/", + "title": "WebGL WEBGL_compressed_texture_s3tc" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/", + "title": "WebGL WEBGL_compressed_texture_s3tc_srgb" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/", + "title": "WebGL WEBGL_debug_renderer_info" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/", + "title": "WebGL WEBGL_debug_shaders" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/", + "title": "WebGL WEBGL_depth_texture" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/", + "title": "WebGL WEBGL_draw_buffers" + }, + { + "url": "https://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/", + "title": "WebGL WEBGL_lose_context" + }, { "url": "https://heycam.github.io/webidl/", "title": "Web IDL"