@types/web 0.0.328 → 0.0.329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +260 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +239 -2
- package/ts5.5/iterable.d.ts +21 -0
- package/ts5.6/index.d.ts +239 -2
- package/ts5.6/iterable.d.ts +21 -0
- package/ts5.9/index.d.ts +239 -2
- package/ts5.9/iterable.d.ts +21 -0
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.329 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.329.
|
package/index.d.ts
CHANGED
|
@@ -808,6 +808,20 @@ interface FullscreenOptions {
|
|
|
808
808
|
navigationUI?: FullscreenNavigationUI;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
+
interface GPUCanvasConfiguration {
|
|
812
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
813
|
+
colorSpace?: PredefinedColorSpace;
|
|
814
|
+
device: GPUDevice;
|
|
815
|
+
format: GPUTextureFormat;
|
|
816
|
+
toneMapping?: GPUCanvasToneMapping;
|
|
817
|
+
usage?: GPUTextureUsageFlags;
|
|
818
|
+
viewFormats?: GPUTextureFormat[];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
interface GPUCanvasToneMapping {
|
|
822
|
+
mode?: GPUCanvasToneMappingMode;
|
|
823
|
+
}
|
|
824
|
+
|
|
811
825
|
interface GPUColorDict {
|
|
812
826
|
a: number;
|
|
813
827
|
b: number;
|
|
@@ -815,6 +829,19 @@ interface GPUColorDict {
|
|
|
815
829
|
r: number;
|
|
816
830
|
}
|
|
817
831
|
|
|
832
|
+
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
836
|
+
timestampWrites?: GPUComputePassTimestampWrites;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
interface GPUComputePassTimestampWrites {
|
|
840
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
841
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
842
|
+
querySet: GPUQuerySet;
|
|
843
|
+
}
|
|
844
|
+
|
|
818
845
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
819
846
|
colorSpace?: PredefinedColorSpace;
|
|
820
847
|
premultipliedAlpha?: boolean;
|
|
@@ -854,6 +881,45 @@ interface GPUPipelineErrorInit {
|
|
|
854
881
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
855
882
|
}
|
|
856
883
|
|
|
884
|
+
interface GPURenderPassColorAttachment {
|
|
885
|
+
clearValue?: GPUColor;
|
|
886
|
+
depthSlice?: GPUIntegerCoordinate;
|
|
887
|
+
loadOp: GPULoadOp;
|
|
888
|
+
resolveTarget?: GPUTexture | GPUTextureView;
|
|
889
|
+
storeOp: GPUStoreOp;
|
|
890
|
+
view: GPUTexture | GPUTextureView;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
interface GPURenderPassDepthStencilAttachment {
|
|
894
|
+
depthClearValue?: number;
|
|
895
|
+
depthLoadOp?: GPULoadOp;
|
|
896
|
+
depthReadOnly?: boolean;
|
|
897
|
+
depthStoreOp?: GPUStoreOp;
|
|
898
|
+
stencilClearValue?: GPUStencilValue;
|
|
899
|
+
stencilLoadOp?: GPULoadOp;
|
|
900
|
+
stencilReadOnly?: boolean;
|
|
901
|
+
stencilStoreOp?: GPUStoreOp;
|
|
902
|
+
view: GPUTexture | GPUTextureView;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
906
|
+
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
907
|
+
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
908
|
+
maxDrawCount?: GPUSize64;
|
|
909
|
+
occlusionQuerySet?: GPUQuerySet;
|
|
910
|
+
timestampWrites?: GPURenderPassTimestampWrites;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
interface GPURenderPassTimestampWrites {
|
|
914
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
915
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
916
|
+
querySet: GPUQuerySet;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
920
|
+
buffer: GPUBuffer;
|
|
921
|
+
}
|
|
922
|
+
|
|
857
923
|
interface GPUTexelCopyBufferLayout {
|
|
858
924
|
bytesPerRow?: GPUSize32;
|
|
859
925
|
offset?: GPUSize64;
|
|
@@ -14954,6 +15020,50 @@ declare var GPUBuffer: {
|
|
|
14954
15020
|
new(): GPUBuffer;
|
|
14955
15021
|
};
|
|
14956
15022
|
|
|
15023
|
+
/**
|
|
15024
|
+
* The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
|
|
15025
|
+
* Available only in secure contexts.
|
|
15026
|
+
*
|
|
15027
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
15028
|
+
*/
|
|
15029
|
+
interface GPUCanvasContext {
|
|
15030
|
+
/**
|
|
15031
|
+
* The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
|
|
15032
|
+
*
|
|
15033
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
|
|
15034
|
+
*/
|
|
15035
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
15036
|
+
/**
|
|
15037
|
+
* The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
|
|
15038
|
+
*
|
|
15039
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
|
|
15040
|
+
*/
|
|
15041
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
15042
|
+
/**
|
|
15043
|
+
* The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
|
|
15044
|
+
*
|
|
15045
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
|
|
15046
|
+
*/
|
|
15047
|
+
getConfiguration(): GPUCanvasConfiguration | null;
|
|
15048
|
+
/**
|
|
15049
|
+
* The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
|
|
15050
|
+
*
|
|
15051
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
|
|
15052
|
+
*/
|
|
15053
|
+
getCurrentTexture(): GPUTexture;
|
|
15054
|
+
/**
|
|
15055
|
+
* The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
|
|
15056
|
+
*
|
|
15057
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
|
|
15058
|
+
*/
|
|
15059
|
+
unconfigure(): void;
|
|
15060
|
+
}
|
|
15061
|
+
|
|
15062
|
+
declare var GPUCanvasContext: {
|
|
15063
|
+
prototype: GPUCanvasContext;
|
|
15064
|
+
new(): GPUCanvasContext;
|
|
15065
|
+
};
|
|
15066
|
+
|
|
14957
15067
|
/**
|
|
14958
15068
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14959
15069
|
* Available only in secure contexts.
|
|
@@ -14968,6 +15078,75 @@ declare var GPUCommandBuffer: {
|
|
|
14968
15078
|
new(): GPUCommandBuffer;
|
|
14969
15079
|
};
|
|
14970
15080
|
|
|
15081
|
+
/**
|
|
15082
|
+
* The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
|
|
15083
|
+
* Available only in secure contexts.
|
|
15084
|
+
*
|
|
15085
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
15086
|
+
*/
|
|
15087
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
15088
|
+
/**
|
|
15089
|
+
* The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
|
|
15090
|
+
*
|
|
15091
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
|
|
15092
|
+
*/
|
|
15093
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
15094
|
+
/**
|
|
15095
|
+
* The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
|
|
15096
|
+
*
|
|
15097
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
|
|
15098
|
+
*/
|
|
15099
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
15100
|
+
/**
|
|
15101
|
+
* The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
|
|
15102
|
+
*
|
|
15103
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
|
|
15104
|
+
*/
|
|
15105
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15106
|
+
/**
|
|
15107
|
+
* The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
|
|
15108
|
+
*
|
|
15109
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
|
|
15110
|
+
*/
|
|
15111
|
+
copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
|
|
15112
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
|
|
15113
|
+
/**
|
|
15114
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
15115
|
+
*
|
|
15116
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
15117
|
+
*/
|
|
15118
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15119
|
+
/**
|
|
15120
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
15121
|
+
*
|
|
15122
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
15123
|
+
*/
|
|
15124
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
15125
|
+
/**
|
|
15126
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
15127
|
+
*
|
|
15128
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
15129
|
+
*/
|
|
15130
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15131
|
+
/**
|
|
15132
|
+
* The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
|
|
15133
|
+
*
|
|
15134
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
|
|
15135
|
+
*/
|
|
15136
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
15137
|
+
/**
|
|
15138
|
+
* The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
|
|
15139
|
+
*
|
|
15140
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
|
|
15141
|
+
*/
|
|
15142
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
15143
|
+
}
|
|
15144
|
+
|
|
15145
|
+
declare var GPUCommandEncoder: {
|
|
15146
|
+
prototype: GPUCommandEncoder;
|
|
15147
|
+
new(): GPUCommandEncoder;
|
|
15148
|
+
};
|
|
15149
|
+
|
|
14971
15150
|
/**
|
|
14972
15151
|
* The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
|
|
14973
15152
|
* Available only in secure contexts.
|
|
@@ -15099,6 +15278,60 @@ interface GPUDebugCommandsMixin {
|
|
|
15099
15278
|
pushDebugGroup(groupLabel: string): void;
|
|
15100
15279
|
}
|
|
15101
15280
|
|
|
15281
|
+
interface GPUDeviceEventMap {
|
|
15282
|
+
"uncapturederror": GPUUncapturedErrorEvent;
|
|
15283
|
+
}
|
|
15284
|
+
|
|
15285
|
+
/**
|
|
15286
|
+
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
|
|
15287
|
+
* Available only in secure contexts.
|
|
15288
|
+
*
|
|
15289
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
15290
|
+
*/
|
|
15291
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
15292
|
+
/**
|
|
15293
|
+
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
|
|
15294
|
+
*
|
|
15295
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
|
|
15296
|
+
*/
|
|
15297
|
+
readonly adapterInfo: GPUAdapterInfo;
|
|
15298
|
+
/**
|
|
15299
|
+
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
|
|
15300
|
+
*
|
|
15301
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
|
|
15302
|
+
*/
|
|
15303
|
+
readonly features: GPUSupportedFeatures;
|
|
15304
|
+
/**
|
|
15305
|
+
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
|
|
15306
|
+
*
|
|
15307
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
|
|
15308
|
+
*/
|
|
15309
|
+
readonly limits: GPUSupportedLimits;
|
|
15310
|
+
/**
|
|
15311
|
+
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
|
|
15312
|
+
*
|
|
15313
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
|
|
15314
|
+
*/
|
|
15315
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
15316
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
|
|
15317
|
+
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
|
|
15318
|
+
/**
|
|
15319
|
+
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
|
|
15320
|
+
*
|
|
15321
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
15322
|
+
*/
|
|
15323
|
+
readonly queue: GPUQueue;
|
|
15324
|
+
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
15325
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15326
|
+
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
15327
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15328
|
+
}
|
|
15329
|
+
|
|
15330
|
+
declare var GPUDevice: {
|
|
15331
|
+
prototype: GPUDevice;
|
|
15332
|
+
new(): GPUDevice;
|
|
15333
|
+
};
|
|
15334
|
+
|
|
15102
15335
|
/**
|
|
15103
15336
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
15104
15337
|
* Available only in secure contexts.
|
|
@@ -43530,7 +43763,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
43530
43763
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
43531
43764
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
43532
43765
|
type NamedCurve = string;
|
|
43533
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
43766
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43534
43767
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
43535
43768
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
43536
43769
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
@@ -43542,7 +43775,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
|
|
|
43542
43775
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
43543
43776
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
43544
43777
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
43545
|
-
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
43778
|
+
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43546
43779
|
type ReportList = Report[];
|
|
43547
43780
|
type RequestInfo = Request | string;
|
|
43548
43781
|
type SanitizerAttribute = string | SanitizerAttributeNamespace;
|
|
@@ -43623,11 +43856,15 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
|
43623
43856
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43624
43857
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43625
43858
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43859
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43860
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
43626
43861
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43627
43862
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43628
43863
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43864
|
+
type GPULoadOp = "clear" | "load";
|
|
43629
43865
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43630
43866
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43867
|
+
type GPUStoreOp = "discard" | "store";
|
|
43631
43868
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43632
43869
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43633
43870
|
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";
|
|
@@ -43921,6 +44158,27 @@ interface GPUBindingCommandsMixin {
|
|
|
43921
44158
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
43922
44159
|
}
|
|
43923
44160
|
|
|
44161
|
+
interface GPUCommandEncoder {
|
|
44162
|
+
/**
|
|
44163
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
44164
|
+
*
|
|
44165
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
44166
|
+
*/
|
|
44167
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44168
|
+
/**
|
|
44169
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
44170
|
+
*
|
|
44171
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
44172
|
+
*/
|
|
44173
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44174
|
+
/**
|
|
44175
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
44176
|
+
*
|
|
44177
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
44178
|
+
*/
|
|
44179
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44180
|
+
}
|
|
44181
|
+
|
|
43924
44182
|
interface GPUQueue {
|
|
43925
44183
|
/**
|
|
43926
44184
|
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -805,6 +805,20 @@ interface FullscreenOptions {
|
|
|
805
805
|
navigationUI?: FullscreenNavigationUI;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
+
interface GPUCanvasConfiguration {
|
|
809
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
810
|
+
colorSpace?: PredefinedColorSpace;
|
|
811
|
+
device: GPUDevice;
|
|
812
|
+
format: GPUTextureFormat;
|
|
813
|
+
toneMapping?: GPUCanvasToneMapping;
|
|
814
|
+
usage?: GPUTextureUsageFlags;
|
|
815
|
+
viewFormats?: GPUTextureFormat[];
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
interface GPUCanvasToneMapping {
|
|
819
|
+
mode?: GPUCanvasToneMappingMode;
|
|
820
|
+
}
|
|
821
|
+
|
|
808
822
|
interface GPUColorDict {
|
|
809
823
|
a: number;
|
|
810
824
|
b: number;
|
|
@@ -812,6 +826,19 @@ interface GPUColorDict {
|
|
|
812
826
|
r: number;
|
|
813
827
|
}
|
|
814
828
|
|
|
829
|
+
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
833
|
+
timestampWrites?: GPUComputePassTimestampWrites;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
interface GPUComputePassTimestampWrites {
|
|
837
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
838
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
839
|
+
querySet: GPUQuerySet;
|
|
840
|
+
}
|
|
841
|
+
|
|
815
842
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
816
843
|
colorSpace?: PredefinedColorSpace;
|
|
817
844
|
premultipliedAlpha?: boolean;
|
|
@@ -851,6 +878,45 @@ interface GPUPipelineErrorInit {
|
|
|
851
878
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
852
879
|
}
|
|
853
880
|
|
|
881
|
+
interface GPURenderPassColorAttachment {
|
|
882
|
+
clearValue?: GPUColor;
|
|
883
|
+
depthSlice?: GPUIntegerCoordinate;
|
|
884
|
+
loadOp: GPULoadOp;
|
|
885
|
+
resolveTarget?: GPUTexture | GPUTextureView;
|
|
886
|
+
storeOp: GPUStoreOp;
|
|
887
|
+
view: GPUTexture | GPUTextureView;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
interface GPURenderPassDepthStencilAttachment {
|
|
891
|
+
depthClearValue?: number;
|
|
892
|
+
depthLoadOp?: GPULoadOp;
|
|
893
|
+
depthReadOnly?: boolean;
|
|
894
|
+
depthStoreOp?: GPUStoreOp;
|
|
895
|
+
stencilClearValue?: GPUStencilValue;
|
|
896
|
+
stencilLoadOp?: GPULoadOp;
|
|
897
|
+
stencilReadOnly?: boolean;
|
|
898
|
+
stencilStoreOp?: GPUStoreOp;
|
|
899
|
+
view: GPUTexture | GPUTextureView;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
903
|
+
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
904
|
+
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
905
|
+
maxDrawCount?: GPUSize64;
|
|
906
|
+
occlusionQuerySet?: GPUQuerySet;
|
|
907
|
+
timestampWrites?: GPURenderPassTimestampWrites;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
interface GPURenderPassTimestampWrites {
|
|
911
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
912
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
913
|
+
querySet: GPUQuerySet;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
917
|
+
buffer: GPUBuffer;
|
|
918
|
+
}
|
|
919
|
+
|
|
854
920
|
interface GPUTexelCopyBufferLayout {
|
|
855
921
|
bytesPerRow?: GPUSize32;
|
|
856
922
|
offset?: GPUSize64;
|
|
@@ -14940,6 +15006,50 @@ declare var GPUBuffer: {
|
|
|
14940
15006
|
new(): GPUBuffer;
|
|
14941
15007
|
};
|
|
14942
15008
|
|
|
15009
|
+
/**
|
|
15010
|
+
* The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
|
|
15011
|
+
* Available only in secure contexts.
|
|
15012
|
+
*
|
|
15013
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
15014
|
+
*/
|
|
15015
|
+
interface GPUCanvasContext {
|
|
15016
|
+
/**
|
|
15017
|
+
* The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
|
|
15018
|
+
*
|
|
15019
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
|
|
15020
|
+
*/
|
|
15021
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
15022
|
+
/**
|
|
15023
|
+
* The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
|
|
15024
|
+
*
|
|
15025
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
|
|
15026
|
+
*/
|
|
15027
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
15028
|
+
/**
|
|
15029
|
+
* The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
|
|
15030
|
+
*
|
|
15031
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
|
|
15032
|
+
*/
|
|
15033
|
+
getConfiguration(): GPUCanvasConfiguration | null;
|
|
15034
|
+
/**
|
|
15035
|
+
* The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
|
|
15036
|
+
*
|
|
15037
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
|
|
15038
|
+
*/
|
|
15039
|
+
getCurrentTexture(): GPUTexture;
|
|
15040
|
+
/**
|
|
15041
|
+
* The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
|
|
15042
|
+
*
|
|
15043
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
|
|
15044
|
+
*/
|
|
15045
|
+
unconfigure(): void;
|
|
15046
|
+
}
|
|
15047
|
+
|
|
15048
|
+
declare var GPUCanvasContext: {
|
|
15049
|
+
prototype: GPUCanvasContext;
|
|
15050
|
+
new(): GPUCanvasContext;
|
|
15051
|
+
};
|
|
15052
|
+
|
|
14943
15053
|
/**
|
|
14944
15054
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14945
15055
|
* Available only in secure contexts.
|
|
@@ -14954,6 +15064,75 @@ declare var GPUCommandBuffer: {
|
|
|
14954
15064
|
new(): GPUCommandBuffer;
|
|
14955
15065
|
};
|
|
14956
15066
|
|
|
15067
|
+
/**
|
|
15068
|
+
* The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
|
|
15069
|
+
* Available only in secure contexts.
|
|
15070
|
+
*
|
|
15071
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
15072
|
+
*/
|
|
15073
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
15074
|
+
/**
|
|
15075
|
+
* The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
|
|
15076
|
+
*
|
|
15077
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
|
|
15078
|
+
*/
|
|
15079
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
15080
|
+
/**
|
|
15081
|
+
* The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
|
|
15082
|
+
*
|
|
15083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
|
|
15084
|
+
*/
|
|
15085
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
15086
|
+
/**
|
|
15087
|
+
* The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
|
|
15088
|
+
*
|
|
15089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
|
|
15090
|
+
*/
|
|
15091
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15092
|
+
/**
|
|
15093
|
+
* The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
|
|
15094
|
+
*
|
|
15095
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
|
|
15096
|
+
*/
|
|
15097
|
+
copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
|
|
15098
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
|
|
15099
|
+
/**
|
|
15100
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
15101
|
+
*
|
|
15102
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
15103
|
+
*/
|
|
15104
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15105
|
+
/**
|
|
15106
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
15107
|
+
*
|
|
15108
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
15109
|
+
*/
|
|
15110
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
15111
|
+
/**
|
|
15112
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
15113
|
+
*
|
|
15114
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
15115
|
+
*/
|
|
15116
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15117
|
+
/**
|
|
15118
|
+
* The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
|
|
15119
|
+
*
|
|
15120
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
|
|
15121
|
+
*/
|
|
15122
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
15123
|
+
/**
|
|
15124
|
+
* The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
|
|
15125
|
+
*
|
|
15126
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
|
|
15127
|
+
*/
|
|
15128
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
15129
|
+
}
|
|
15130
|
+
|
|
15131
|
+
declare var GPUCommandEncoder: {
|
|
15132
|
+
prototype: GPUCommandEncoder;
|
|
15133
|
+
new(): GPUCommandEncoder;
|
|
15134
|
+
};
|
|
15135
|
+
|
|
14957
15136
|
/**
|
|
14958
15137
|
* The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
|
|
14959
15138
|
* Available only in secure contexts.
|
|
@@ -15085,6 +15264,60 @@ interface GPUDebugCommandsMixin {
|
|
|
15085
15264
|
pushDebugGroup(groupLabel: string): void;
|
|
15086
15265
|
}
|
|
15087
15266
|
|
|
15267
|
+
interface GPUDeviceEventMap {
|
|
15268
|
+
"uncapturederror": GPUUncapturedErrorEvent;
|
|
15269
|
+
}
|
|
15270
|
+
|
|
15271
|
+
/**
|
|
15272
|
+
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
|
|
15273
|
+
* Available only in secure contexts.
|
|
15274
|
+
*
|
|
15275
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
15276
|
+
*/
|
|
15277
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
15278
|
+
/**
|
|
15279
|
+
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
|
|
15280
|
+
*
|
|
15281
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
|
|
15282
|
+
*/
|
|
15283
|
+
readonly adapterInfo: GPUAdapterInfo;
|
|
15284
|
+
/**
|
|
15285
|
+
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
|
|
15286
|
+
*
|
|
15287
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
|
|
15288
|
+
*/
|
|
15289
|
+
readonly features: GPUSupportedFeatures;
|
|
15290
|
+
/**
|
|
15291
|
+
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
|
|
15292
|
+
*
|
|
15293
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
|
|
15294
|
+
*/
|
|
15295
|
+
readonly limits: GPUSupportedLimits;
|
|
15296
|
+
/**
|
|
15297
|
+
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
|
|
15298
|
+
*
|
|
15299
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
|
|
15300
|
+
*/
|
|
15301
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
15302
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
|
|
15303
|
+
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
|
|
15304
|
+
/**
|
|
15305
|
+
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
|
|
15306
|
+
*
|
|
15307
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
15308
|
+
*/
|
|
15309
|
+
readonly queue: GPUQueue;
|
|
15310
|
+
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
15311
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15312
|
+
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
15313
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15314
|
+
}
|
|
15315
|
+
|
|
15316
|
+
declare var GPUDevice: {
|
|
15317
|
+
prototype: GPUDevice;
|
|
15318
|
+
new(): GPUDevice;
|
|
15319
|
+
};
|
|
15320
|
+
|
|
15088
15321
|
/**
|
|
15089
15322
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
15090
15323
|
* Available only in secure contexts.
|
|
@@ -43504,7 +43737,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
43504
43737
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
43505
43738
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
43506
43739
|
type NamedCurve = string;
|
|
43507
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
43740
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43508
43741
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
43509
43742
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
43510
43743
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
@@ -43516,7 +43749,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
|
|
|
43516
43749
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
43517
43750
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
43518
43751
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
43519
|
-
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
43752
|
+
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43520
43753
|
type ReportList = Report[];
|
|
43521
43754
|
type RequestInfo = Request | string;
|
|
43522
43755
|
type SanitizerAttribute = string | SanitizerAttributeNamespace;
|
|
@@ -43597,11 +43830,15 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
|
43597
43830
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43598
43831
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43599
43832
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43833
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43834
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
43600
43835
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43601
43836
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43602
43837
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43838
|
+
type GPULoadOp = "clear" | "load";
|
|
43603
43839
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43604
43840
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43841
|
+
type GPUStoreOp = "discard" | "store";
|
|
43605
43842
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43606
43843
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43607
43844
|
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";
|