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
60 changes: 60 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14748,6 +14748,62 @@ declare var GPUBindGroupLayout: {
new(): GPUBindGroupLayout;
};

/**
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
*/
interface GPUBuffer extends GPUObjectBase {
/**
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
*/
readonly mapState: GPUBufferMapState;
/**
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
*/
readonly size: GPUSize64Out;
/**
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
*/
readonly usage: GPUFlagsConstant;
/**
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
*/
destroy(): void;
/**
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
*/
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
/**
* The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
*/
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
/**
* The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
*/
unmap(): void;
}

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

/**
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
* Available only in secure contexts.
Expand Down Expand Up @@ -43000,7 +43056,10 @@ type GLuint64 = number;
type GPUFlagsConstant = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUSize32Out = number;
type GPUSize64 = number;
type GPUSize64Out = number;
type GPUTextureUsageFlags = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
Expand Down Expand Up @@ -43105,6 +43164,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
type GPUCompilationMessageType = "error" | "info" | "warning";
type GPUDeviceLostReason = "destroyed" | "unknown";
type GPUPipelineErrorReason = "internal" | "validation";
Expand Down
60 changes: 60 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4225,6 +4225,62 @@ declare var GPUBindGroupLayout: {
new(): GPUBindGroupLayout;
};

/**
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
*/
interface GPUBuffer extends GPUObjectBase {
/**
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
*/
readonly mapState: GPUBufferMapState;
/**
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
*/
readonly size: GPUSize64Out;
/**
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
*/
readonly usage: GPUFlagsConstant;
/**
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
*/
destroy(): void;
/**
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
*/
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
/**
* The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
*/
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
/**
* The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
*/
unmap(): void;
}

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

/**
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
* Available only in secure contexts.
Expand Down Expand Up @@ -12302,7 +12358,10 @@ type GLuint64 = number;
type GPUFlagsConstant = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUSize32Out = number;
type GPUSize64 = number;
type GPUSize64Out = number;
type GPUTextureUsageFlags = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
Expand Down Expand Up @@ -12352,6 +12411,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
type GPUCompilationMessageType = "error" | "info" | "warning";
type GPUDeviceLostReason = "destroyed" | "unknown";
type GPUPipelineErrorReason = "internal" | "validation";
Expand Down
60 changes: 60 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3908,6 +3908,62 @@ declare var GPUBindGroupLayout: {
new(): GPUBindGroupLayout;
};

/**
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
*/
interface GPUBuffer extends GPUObjectBase {
/**
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
*/
readonly mapState: GPUBufferMapState;
/**
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
*/
readonly size: GPUSize64Out;
/**
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
*/
readonly usage: GPUFlagsConstant;
/**
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
*/
destroy(): void;
/**
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
*/
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
/**
* The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
*/
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
/**
* The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
*/
unmap(): void;
}

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

/**
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
* Available only in secure contexts.
Expand Down Expand Up @@ -11972,7 +12028,10 @@ type GLuint64 = number;
type GPUFlagsConstant = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUSize32Out = number;
type GPUSize64 = number;
type GPUSize64Out = number;
type GPUTextureUsageFlags = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
Expand Down Expand Up @@ -12018,6 +12077,7 @@ type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
type GPUCompilationMessageType = "error" | "info" | "warning";
type GPUDeviceLostReason = "destroyed" | "unknown";
type GPUPipelineErrorReason = "internal" | "validation";
Expand Down
60 changes: 60 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14734,6 +14734,62 @@ declare var GPUBindGroupLayout: {
new(): GPUBindGroupLayout;
};

/**
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
*/
interface GPUBuffer extends GPUObjectBase {
/**
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
*/
readonly mapState: GPUBufferMapState;
/**
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
*/
readonly size: GPUSize64Out;
/**
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
*/
readonly usage: GPUFlagsConstant;
/**
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
*/
destroy(): void;
/**
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
*/
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
/**
* The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
*/
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
/**
* The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
*/
unmap(): void;
}

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

/**
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
* Available only in secure contexts.
Expand Down Expand Up @@ -42974,7 +43030,10 @@ type GLuint64 = number;
type GPUFlagsConstant = number;
type GPUIntegerCoordinate = number;
type GPUIntegerCoordinateOut = number;
type GPUMapModeFlags = number;
type GPUSize32Out = number;
type GPUSize64 = number;
type GPUSize64Out = number;
type GPUTextureUsageFlags = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
Expand Down Expand Up @@ -43079,6 +43138,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
type GPUCompilationMessageType = "error" | "info" | "warning";
type GPUDeviceLostReason = "destroyed" | "unknown";
type GPUPipelineErrorReason = "internal" | "validation";
Expand Down
Loading