Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,17 +812,58 @@ interface GPUColorDict {
r: number;
}

interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
colorSpace?: PredefinedColorSpace;
premultipliedAlpha?: boolean;
}

interface GPUCopyExternalImageSourceInfo {
flipY?: boolean;
origin?: GPUOrigin2D;
source: GPUCopyExternalImageSource;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
width: GPUIntegerCoordinate;
}

interface GPUObjectDescriptorBase {
label?: string;
}

interface GPUOrigin2DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
}

interface GPUOrigin3DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
z?: GPUIntegerCoordinate;
}

interface GPUPipelineErrorInit {
reason: GPUPipelineErrorReason;
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

interface GPUTexelCopyBufferLayout {
bytesPerRow?: GPUSize32;
offset?: GPUSize64;
rowsPerImage?: GPUSize32;
}

interface GPUTexelCopyTextureInfo {
aspect?: GPUTextureAspect;
mipLevel?: GPUIntegerCoordinate;
origin?: GPUOrigin3D;
texture: GPUTexture;
}

interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
arrayLayerCount?: GPUIntegerCoordinate;
aspect?: GPUTextureAspect;
Expand Down Expand Up @@ -15219,6 +15260,50 @@ declare var GPUQuerySet: {
new(): GPUQuerySet;
};

/**
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
*/
interface GPUQueue extends GPUObjectBase {
/**
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
*/
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
/**
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
*/
onSubmittedWorkDone(): Promise<void>;
/**
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
*/
submit(commandBuffers: GPUCommandBuffer[]): void;
/**
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
*/
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
/**
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
*/
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
}

declare var GPUQueue: {
prototype: GPUQueue;
new(): GPUQueue;
};

/**
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
* Available only in secure contexts.
Expand Down Expand Up @@ -43412,11 +43497,15 @@ type GLuint = number;
type GLuint64 = number;
type GPUBufferDynamicOffset = number;
type GPUColor = number[] | GPUColorDict;
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
type GPUFlagsConstant = number;
type GPUIndex32 = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
type GPUSignedOffset32 = number;
type GPUSize32 = number;
type GPUSize32Out = number;
Expand Down Expand Up @@ -43829,6 +43918,27 @@ interface GPUBindingCommandsMixin {
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
}

interface GPUQueue {
/**
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
*/
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
/**
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
*/
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
/**
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
*/
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
}

interface GPURenderPassEncoder {
/**
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
Expand Down
110 changes: 110 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,58 @@ interface GPUColorDict {
r: number;
}

interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
colorSpace?: PredefinedColorSpace;
premultipliedAlpha?: boolean;
}

interface GPUCopyExternalImageSourceInfo {
flipY?: boolean;
origin?: GPUOrigin2D;
source: GPUCopyExternalImageSource;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
width: GPUIntegerCoordinate;
}

interface GPUObjectDescriptorBase {
label?: string;
}

interface GPUOrigin2DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
}

interface GPUOrigin3DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
z?: GPUIntegerCoordinate;
}

interface GPUPipelineErrorInit {
reason: GPUPipelineErrorReason;
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

interface GPUTexelCopyBufferLayout {
bytesPerRow?: GPUSize32;
offset?: GPUSize64;
rowsPerImage?: GPUSize32;
}

interface GPUTexelCopyTextureInfo {
aspect?: GPUTextureAspect;
mipLevel?: GPUIntegerCoordinate;
origin?: GPUOrigin3D;
texture: GPUTexture;
}

interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
arrayLayerCount?: GPUIntegerCoordinate;
aspect?: GPUTextureAspect;
Expand Down Expand Up @@ -4662,6 +4703,50 @@ declare var GPUQuerySet: {
new(): GPUQuerySet;
};

/**
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
*/
interface GPUQueue extends GPUObjectBase {
/**
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
*/
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
/**
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
*/
onSubmittedWorkDone(): Promise<void>;
/**
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
*/
submit(commandBuffers: GPUCommandBuffer[]): void;
/**
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
*/
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
/**
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
*/
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
}

declare var GPUQueue: {
prototype: GPUQueue;
new(): GPUQueue;
};

/**
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
* Available only in secure contexts.
Expand Down Expand Up @@ -12609,11 +12694,15 @@ type GLuint = number;
type GLuint64 = number;
type GPUBufferDynamicOffset = number;
type GPUColor = number[] | GPUColorDict;
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
type GPUFlagsConstant = number;
type GPUIndex32 = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
type GPUSignedOffset32 = number;
type GPUSize32 = number;
type GPUSize32Out = number;
Expand Down Expand Up @@ -12815,6 +12904,27 @@ interface GPUBindingCommandsMixin {
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
}

interface GPUQueue {
/**
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
*/
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
/**
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
*/
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
/**
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
*/
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
}

interface GPURenderPassEncoder {
/**
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
Expand Down
Loading