From 989f5ae99e3e34f1fe5529933eb2ba6d1339fd5f Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 10 Jan 2026 23:49:09 +0100 Subject: [PATCH] Add GPUTexture --- baselines/dom.generated.d.ts | 98 ++++++++++++++++++++ baselines/serviceworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/sharedworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.5/serviceworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.5/sharedworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.5/webworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.6/serviceworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.6/sharedworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.6/webworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.9/dom.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.9/serviceworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.9/sharedworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/ts5.9/webworker.generated.d.ts | 98 ++++++++++++++++++++ baselines/webworker.generated.d.ts | 98 ++++++++++++++++++++ inputfiles/overridingTypes.jsonc | 3 - inputfiles/patches/webgpu.kdl | 2 +- 18 files changed, 1569 insertions(+), 4 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2f4b821f0..2ac414662 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -805,10 +805,25 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -15026,6 +15041,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -42818,6 +42907,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; type HashAlgorithmIdentifier = AlgorithmIdentifier; @@ -42923,6 +43017,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 37c3487fb..01888a982 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -272,10 +272,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4503,6 +4518,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -12107,6 +12196,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -12157,6 +12251,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 950c57ec1..a9574a612 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -216,10 +216,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4186,6 +4201,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -11790,6 +11879,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -11836,6 +11930,10 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 36ece11a9..bef06c882 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -802,10 +802,25 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -15012,6 +15027,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -42792,6 +42881,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; type HashAlgorithmIdentifier = AlgorithmIdentifier; @@ -42897,6 +42991,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 7d9ff23e1..f057f5c2b 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -269,10 +269,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4500,6 +4515,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -12104,6 +12193,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -12154,6 +12248,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 47a1684e3..13c0db662 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -213,10 +213,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4183,6 +4198,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -11787,6 +11876,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -11833,6 +11927,10 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index ad4a9e946..f162ba299 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -359,10 +359,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -5202,6 +5217,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -13781,6 +13870,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -13840,6 +13934,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 3e3fcf36e..923cb68a3 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -802,10 +802,25 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -15023,6 +15038,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -42815,6 +42904,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; type HashAlgorithmIdentifier = AlgorithmIdentifier; @@ -42920,6 +43014,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 7d9ff23e1..f057f5c2b 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -269,10 +269,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4500,6 +4515,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -12104,6 +12193,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -12154,6 +12248,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 47a1684e3..13c0db662 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -213,10 +213,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4183,6 +4198,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -11787,6 +11876,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -11833,6 +11927,10 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index ad4a9e946..f162ba299 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -359,10 +359,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -5202,6 +5217,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -13781,6 +13870,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -13840,6 +13934,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index da46d9ac4..8722f7439 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -802,10 +802,25 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -15023,6 +15038,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -42815,6 +42904,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; type HashAlgorithmIdentifier = AlgorithmIdentifier; @@ -42920,6 +43014,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 6dbe177f6..930ba58a9 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -269,10 +269,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4500,6 +4515,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -12104,6 +12193,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -12154,6 +12248,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 772989354..05c9e481c 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -213,10 +213,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -4183,6 +4198,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -11787,6 +11876,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -11833,6 +11927,10 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 60b3c526b..f4a593500 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -359,10 +359,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -5202,6 +5217,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -13781,6 +13870,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -13840,6 +13934,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 85660d62a..5362ada3e 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -362,10 +362,25 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUObjectDescriptorBase { + label?: string; +} + interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase { + arrayLayerCount?: GPUIntegerCoordinate; + aspect?: GPUTextureAspect; + baseArrayLayer?: GPUIntegerCoordinate; + baseMipLevel?: GPUIntegerCoordinate; + dimension?: GPUTextureViewDimension; + format?: GPUTextureFormat; + mipLevelCount?: GPUIntegerCoordinate; + usage?: GPUTextureUsageFlags; +} + interface GPUUncapturedErrorEventInit extends EventInit { error: GPUError; } @@ -5205,6 +5220,80 @@ declare var GPUSupportedLimits: { new(): GPUSupportedLimits; }; +/** + * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture) + */ +interface GPUTexture extends GPUObjectBase { + /** + * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) + */ + readonly depthOrArrayLayers: GPUIntegerCoordinateOut; + /** + * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) + */ + readonly dimension: GPUTextureDimension; + /** + * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) + */ + readonly format: GPUTextureFormat; + /** + * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) + */ + readonly height: GPUIntegerCoordinateOut; + /** + * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) + */ + readonly mipLevelCount: GPUIntegerCoordinateOut; + /** + * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) + */ + readonly sampleCount: GPUSize32Out; + /** + * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) + */ + readonly usage: GPUFlagsConstant; + /** + * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) + */ + readonly width: GPUIntegerCoordinateOut; + /** + * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) + */ + createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView; + /** + * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) + */ + destroy(): void; +} + +declare var GPUTexture: { + prototype: GPUTexture; + new(): GPUTexture; +}; + /** * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. * Available only in secure contexts. @@ -13784,6 +13873,11 @@ type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; +type GPUFlagsConstant = number; +type GPUIntegerCoordinate = number; +type GPUIntegerCoordinateOut = number; +type GPUSize32Out = number; +type GPUTextureUsageFlags = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; @@ -13843,6 +13937,10 @@ type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; +type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; +type GPUTextureDimension = "1d" | "2d" | "3d"; +type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8"; +type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 15542f20a..d967308dc 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2972,9 +2972,6 @@ "GPUShaderModule": { "exposed": "" }, - "GPUTexture": { - "exposed": "" - }, "TrustedHTML": { "exposed": "" }, diff --git a/inputfiles/patches/webgpu.kdl b/inputfiles/patches/webgpu.kdl index 1ad352c3a..7bda310bd 100644 --- a/inputfiles/patches/webgpu.kdl +++ b/inputfiles/patches/webgpu.kdl @@ -36,6 +36,6 @@ removals { } dictionary GPUTextureViewDescriptor { - member usage // Blink only as of 2024-11 + member swizzle // Blink only as of 2026-01 } }