@types/sharedworker 0.0.204 → 0.0.206

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 CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.204 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.204.
31
+ You can read what changed in version 0.0.206 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.206.
package/index.d.ts CHANGED
@@ -3911,6 +3911,62 @@ declare var GPUBindGroupLayout: {
3911
3911
  new(): GPUBindGroupLayout;
3912
3912
  };
3913
3913
 
3914
+ /**
3915
+ * 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.
3916
+ * Available only in secure contexts.
3917
+ *
3918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3919
+ */
3920
+ interface GPUBuffer extends GPUObjectBase {
3921
+ /**
3922
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
3923
+ *
3924
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
3925
+ */
3926
+ readonly mapState: GPUBufferMapState;
3927
+ /**
3928
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
3929
+ *
3930
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
3931
+ */
3932
+ readonly size: GPUSize64Out;
3933
+ /**
3934
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
3935
+ *
3936
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
3937
+ */
3938
+ readonly usage: GPUFlagsConstant;
3939
+ /**
3940
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
3941
+ *
3942
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
3943
+ */
3944
+ destroy(): void;
3945
+ /**
3946
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
3947
+ *
3948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
3949
+ */
3950
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3951
+ /**
3952
+ * 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.
3953
+ *
3954
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
3955
+ */
3956
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3957
+ /**
3958
+ * 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).
3959
+ *
3960
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
3961
+ */
3962
+ unmap(): void;
3963
+ }
3964
+
3965
+ declare var GPUBuffer: {
3966
+ prototype: GPUBuffer;
3967
+ new(): GPUBuffer;
3968
+ };
3969
+
3914
3970
  /**
3915
3971
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3916
3972
  * Available only in secure contexts.
@@ -3925,6 +3981,76 @@ declare var GPUCommandBuffer: {
3925
3981
  new(): GPUCommandBuffer;
3926
3982
  };
3927
3983
 
3984
+ /**
3985
+ * 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.
3986
+ * Available only in secure contexts.
3987
+ *
3988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3989
+ */
3990
+ interface GPUCompilationInfo {
3991
+ /**
3992
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
3993
+ *
3994
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
3995
+ */
3996
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
3997
+ }
3998
+
3999
+ declare var GPUCompilationInfo: {
4000
+ prototype: GPUCompilationInfo;
4001
+ new(): GPUCompilationInfo;
4002
+ };
4003
+
4004
+ /**
4005
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
4006
+ * Available only in secure contexts.
4007
+ *
4008
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
4009
+ */
4010
+ interface GPUCompilationMessage {
4011
+ /**
4012
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
4013
+ *
4014
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
4015
+ */
4016
+ readonly length: number;
4017
+ /**
4018
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
4019
+ *
4020
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
4021
+ */
4022
+ readonly lineNum: number;
4023
+ /**
4024
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
4025
+ *
4026
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
4027
+ */
4028
+ readonly linePos: number;
4029
+ /**
4030
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
4031
+ *
4032
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
4033
+ */
4034
+ readonly message: string;
4035
+ /**
4036
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
4037
+ *
4038
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
4039
+ */
4040
+ readonly offset: number;
4041
+ /**
4042
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
4043
+ *
4044
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
4045
+ */
4046
+ readonly type: GPUCompilationMessageType;
4047
+ }
4048
+
4049
+ declare var GPUCompilationMessage: {
4050
+ prototype: GPUCompilationMessage;
4051
+ new(): GPUCompilationMessage;
4052
+ };
4053
+
3928
4054
  /**
3929
4055
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3930
4056
  * Available only in secure contexts.
@@ -4113,6 +4239,26 @@ declare var GPUSampler: {
4113
4239
  new(): GPUSampler;
4114
4240
  };
4115
4241
 
4242
+ /**
4243
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4244
+ * Available only in secure contexts.
4245
+ *
4246
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4247
+ */
4248
+ interface GPUShaderModule extends GPUObjectBase {
4249
+ /**
4250
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4251
+ *
4252
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4253
+ */
4254
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
4255
+ }
4256
+
4257
+ declare var GPUShaderModule: {
4258
+ prototype: GPUShaderModule;
4259
+ new(): GPUShaderModule;
4260
+ };
4261
+
4116
4262
  /**
4117
4263
  * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4118
4264
  * Available only in secure contexts.
@@ -6113,7 +6259,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
6113
6259
  */
6114
6260
  readonly redirectStart: DOMHighResTimeStamp;
6115
6261
  /**
6116
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
6262
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
6117
6263
  *
6118
6264
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
6119
6265
  */
@@ -11367,6 +11513,8 @@ declare namespace WebAssembly {
11367
11513
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
11368
11514
  */
11369
11515
  grow(delta: AddressValue): AddressValue;
11516
+ toFixedLengthBuffer(): ArrayBuffer;
11517
+ toResizableBuffer(): ArrayBuffer;
11370
11518
  }
11371
11519
 
11372
11520
  var Memory: {
@@ -11885,7 +12033,10 @@ type GLuint64 = number;
11885
12033
  type GPUFlagsConstant = number;
11886
12034
  type GPUIntegerCoordinate = number;
11887
12035
  type GPUIntegerCoordinateOut = number;
12036
+ type GPUMapModeFlags = number;
11888
12037
  type GPUSize32Out = number;
12038
+ type GPUSize64 = number;
12039
+ type GPUSize64Out = number;
11889
12040
  type GPUTextureUsageFlags = number;
11890
12041
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11891
12042
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -11931,6 +12082,8 @@ type FileSystemHandleKind = "directory" | "file";
11931
12082
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11932
12083
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11933
12084
  type FontFaceSetLoadStatus = "loaded" | "loading";
12085
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12086
+ type GPUCompilationMessageType = "error" | "info" | "warning";
11934
12087
  type GPUDeviceLostReason = "destroyed" | "unknown";
11935
12088
  type GPUPipelineErrorReason = "internal" | "validation";
11936
12089
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.204",
3
+ "version": "0.0.206",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -3908,6 +3908,62 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ /**
3912
+ * 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.
3913
+ * Available only in secure contexts.
3914
+ *
3915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3916
+ */
3917
+ interface GPUBuffer extends GPUObjectBase {
3918
+ /**
3919
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
3920
+ *
3921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
3922
+ */
3923
+ readonly mapState: GPUBufferMapState;
3924
+ /**
3925
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
3926
+ *
3927
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
3928
+ */
3929
+ readonly size: GPUSize64Out;
3930
+ /**
3931
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
3932
+ *
3933
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
3934
+ */
3935
+ readonly usage: GPUFlagsConstant;
3936
+ /**
3937
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
3938
+ *
3939
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
3940
+ */
3941
+ destroy(): void;
3942
+ /**
3943
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
3944
+ *
3945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
3946
+ */
3947
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3948
+ /**
3949
+ * 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.
3950
+ *
3951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
3952
+ */
3953
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3954
+ /**
3955
+ * 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).
3956
+ *
3957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
3958
+ */
3959
+ unmap(): void;
3960
+ }
3961
+
3962
+ declare var GPUBuffer: {
3963
+ prototype: GPUBuffer;
3964
+ new(): GPUBuffer;
3965
+ };
3966
+
3911
3967
  /**
3912
3968
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3913
3969
  * Available only in secure contexts.
@@ -3922,6 +3978,76 @@ declare var GPUCommandBuffer: {
3922
3978
  new(): GPUCommandBuffer;
3923
3979
  };
3924
3980
 
3981
+ /**
3982
+ * 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.
3983
+ * Available only in secure contexts.
3984
+ *
3985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3986
+ */
3987
+ interface GPUCompilationInfo {
3988
+ /**
3989
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
3990
+ *
3991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
3992
+ */
3993
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
3994
+ }
3995
+
3996
+ declare var GPUCompilationInfo: {
3997
+ prototype: GPUCompilationInfo;
3998
+ new(): GPUCompilationInfo;
3999
+ };
4000
+
4001
+ /**
4002
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
4003
+ * Available only in secure contexts.
4004
+ *
4005
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
4006
+ */
4007
+ interface GPUCompilationMessage {
4008
+ /**
4009
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
4010
+ *
4011
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
4012
+ */
4013
+ readonly length: number;
4014
+ /**
4015
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
4016
+ *
4017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
4018
+ */
4019
+ readonly lineNum: number;
4020
+ /**
4021
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
4022
+ *
4023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
4024
+ */
4025
+ readonly linePos: number;
4026
+ /**
4027
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
4028
+ *
4029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
4030
+ */
4031
+ readonly message: string;
4032
+ /**
4033
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
4034
+ *
4035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
4036
+ */
4037
+ readonly offset: number;
4038
+ /**
4039
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
4040
+ *
4041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
4042
+ */
4043
+ readonly type: GPUCompilationMessageType;
4044
+ }
4045
+
4046
+ declare var GPUCompilationMessage: {
4047
+ prototype: GPUCompilationMessage;
4048
+ new(): GPUCompilationMessage;
4049
+ };
4050
+
3925
4051
  /**
3926
4052
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3927
4053
  * Available only in secure contexts.
@@ -4110,6 +4236,26 @@ declare var GPUSampler: {
4110
4236
  new(): GPUSampler;
4111
4237
  };
4112
4238
 
4239
+ /**
4240
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4241
+ * Available only in secure contexts.
4242
+ *
4243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4244
+ */
4245
+ interface GPUShaderModule extends GPUObjectBase {
4246
+ /**
4247
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4248
+ *
4249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4250
+ */
4251
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
4252
+ }
4253
+
4254
+ declare var GPUShaderModule: {
4255
+ prototype: GPUShaderModule;
4256
+ new(): GPUShaderModule;
4257
+ };
4258
+
4113
4259
  /**
4114
4260
  * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4115
4261
  * Available only in secure contexts.
@@ -6110,7 +6256,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
6110
6256
  */
6111
6257
  readonly redirectStart: DOMHighResTimeStamp;
6112
6258
  /**
6113
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
6259
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
6114
6260
  *
6115
6261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
6116
6262
  */
@@ -11364,6 +11510,8 @@ declare namespace WebAssembly {
11364
11510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
11365
11511
  */
11366
11512
  grow(delta: AddressValue): AddressValue;
11513
+ toFixedLengthBuffer(): ArrayBuffer;
11514
+ toResizableBuffer(): ArrayBuffer;
11367
11515
  }
11368
11516
 
11369
11517
  var Memory: {
@@ -11882,7 +12030,10 @@ type GLuint64 = number;
11882
12030
  type GPUFlagsConstant = number;
11883
12031
  type GPUIntegerCoordinate = number;
11884
12032
  type GPUIntegerCoordinateOut = number;
12033
+ type GPUMapModeFlags = number;
11885
12034
  type GPUSize32Out = number;
12035
+ type GPUSize64 = number;
12036
+ type GPUSize64Out = number;
11886
12037
  type GPUTextureUsageFlags = number;
11887
12038
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11888
12039
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -11928,6 +12079,8 @@ type FileSystemHandleKind = "directory" | "file";
11928
12079
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11929
12080
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11930
12081
  type FontFaceSetLoadStatus = "loaded" | "loading";
12082
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
+ type GPUCompilationMessageType = "error" | "info" | "warning";
11931
12084
  type GPUDeviceLostReason = "destroyed" | "unknown";
11932
12085
  type GPUPipelineErrorReason = "internal" | "validation";
11933
12086
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
package/ts5.6/index.d.ts CHANGED
@@ -3908,6 +3908,62 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ /**
3912
+ * 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.
3913
+ * Available only in secure contexts.
3914
+ *
3915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3916
+ */
3917
+ interface GPUBuffer extends GPUObjectBase {
3918
+ /**
3919
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
3920
+ *
3921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
3922
+ */
3923
+ readonly mapState: GPUBufferMapState;
3924
+ /**
3925
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
3926
+ *
3927
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
3928
+ */
3929
+ readonly size: GPUSize64Out;
3930
+ /**
3931
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
3932
+ *
3933
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
3934
+ */
3935
+ readonly usage: GPUFlagsConstant;
3936
+ /**
3937
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
3938
+ *
3939
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
3940
+ */
3941
+ destroy(): void;
3942
+ /**
3943
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
3944
+ *
3945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
3946
+ */
3947
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3948
+ /**
3949
+ * 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.
3950
+ *
3951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
3952
+ */
3953
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3954
+ /**
3955
+ * 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).
3956
+ *
3957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
3958
+ */
3959
+ unmap(): void;
3960
+ }
3961
+
3962
+ declare var GPUBuffer: {
3963
+ prototype: GPUBuffer;
3964
+ new(): GPUBuffer;
3965
+ };
3966
+
3911
3967
  /**
3912
3968
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3913
3969
  * Available only in secure contexts.
@@ -3922,6 +3978,76 @@ declare var GPUCommandBuffer: {
3922
3978
  new(): GPUCommandBuffer;
3923
3979
  };
3924
3980
 
3981
+ /**
3982
+ * 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.
3983
+ * Available only in secure contexts.
3984
+ *
3985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3986
+ */
3987
+ interface GPUCompilationInfo {
3988
+ /**
3989
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
3990
+ *
3991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
3992
+ */
3993
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
3994
+ }
3995
+
3996
+ declare var GPUCompilationInfo: {
3997
+ prototype: GPUCompilationInfo;
3998
+ new(): GPUCompilationInfo;
3999
+ };
4000
+
4001
+ /**
4002
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
4003
+ * Available only in secure contexts.
4004
+ *
4005
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
4006
+ */
4007
+ interface GPUCompilationMessage {
4008
+ /**
4009
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
4010
+ *
4011
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
4012
+ */
4013
+ readonly length: number;
4014
+ /**
4015
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
4016
+ *
4017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
4018
+ */
4019
+ readonly lineNum: number;
4020
+ /**
4021
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
4022
+ *
4023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
4024
+ */
4025
+ readonly linePos: number;
4026
+ /**
4027
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
4028
+ *
4029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
4030
+ */
4031
+ readonly message: string;
4032
+ /**
4033
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
4034
+ *
4035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
4036
+ */
4037
+ readonly offset: number;
4038
+ /**
4039
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
4040
+ *
4041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
4042
+ */
4043
+ readonly type: GPUCompilationMessageType;
4044
+ }
4045
+
4046
+ declare var GPUCompilationMessage: {
4047
+ prototype: GPUCompilationMessage;
4048
+ new(): GPUCompilationMessage;
4049
+ };
4050
+
3925
4051
  /**
3926
4052
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3927
4053
  * Available only in secure contexts.
@@ -4110,6 +4236,26 @@ declare var GPUSampler: {
4110
4236
  new(): GPUSampler;
4111
4237
  };
4112
4238
 
4239
+ /**
4240
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4241
+ * Available only in secure contexts.
4242
+ *
4243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4244
+ */
4245
+ interface GPUShaderModule extends GPUObjectBase {
4246
+ /**
4247
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4248
+ *
4249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4250
+ */
4251
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
4252
+ }
4253
+
4254
+ declare var GPUShaderModule: {
4255
+ prototype: GPUShaderModule;
4256
+ new(): GPUShaderModule;
4257
+ };
4258
+
4113
4259
  /**
4114
4260
  * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4115
4261
  * Available only in secure contexts.
@@ -6110,7 +6256,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
6110
6256
  */
6111
6257
  readonly redirectStart: DOMHighResTimeStamp;
6112
6258
  /**
6113
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
6259
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
6114
6260
  *
6115
6261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
6116
6262
  */
@@ -11364,6 +11510,8 @@ declare namespace WebAssembly {
11364
11510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
11365
11511
  */
11366
11512
  grow(delta: AddressValue): AddressValue;
11513
+ toFixedLengthBuffer(): ArrayBuffer;
11514
+ toResizableBuffer(): ArrayBuffer;
11367
11515
  }
11368
11516
 
11369
11517
  var Memory: {
@@ -11882,7 +12030,10 @@ type GLuint64 = number;
11882
12030
  type GPUFlagsConstant = number;
11883
12031
  type GPUIntegerCoordinate = number;
11884
12032
  type GPUIntegerCoordinateOut = number;
12033
+ type GPUMapModeFlags = number;
11885
12034
  type GPUSize32Out = number;
12035
+ type GPUSize64 = number;
12036
+ type GPUSize64Out = number;
11886
12037
  type GPUTextureUsageFlags = number;
11887
12038
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11888
12039
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -11928,6 +12079,8 @@ type FileSystemHandleKind = "directory" | "file";
11928
12079
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11929
12080
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11930
12081
  type FontFaceSetLoadStatus = "loaded" | "loading";
12082
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
+ type GPUCompilationMessageType = "error" | "info" | "warning";
11931
12084
  type GPUDeviceLostReason = "destroyed" | "unknown";
11932
12085
  type GPUPipelineErrorReason = "internal" | "validation";
11933
12086
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
package/ts5.9/index.d.ts CHANGED
@@ -3908,6 +3908,62 @@ declare var GPUBindGroupLayout: {
3908
3908
  new(): GPUBindGroupLayout;
3909
3909
  };
3910
3910
 
3911
+ /**
3912
+ * 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.
3913
+ * Available only in secure contexts.
3914
+ *
3915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3916
+ */
3917
+ interface GPUBuffer extends GPUObjectBase {
3918
+ /**
3919
+ * The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
3920
+ *
3921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
3922
+ */
3923
+ readonly mapState: GPUBufferMapState;
3924
+ /**
3925
+ * The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
3926
+ *
3927
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
3928
+ */
3929
+ readonly size: GPUSize64Out;
3930
+ /**
3931
+ * The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
3932
+ *
3933
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
3934
+ */
3935
+ readonly usage: GPUFlagsConstant;
3936
+ /**
3937
+ * The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
3938
+ *
3939
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
3940
+ */
3941
+ destroy(): void;
3942
+ /**
3943
+ * The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
3944
+ *
3945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
3946
+ */
3947
+ getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3948
+ /**
3949
+ * 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.
3950
+ *
3951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
3952
+ */
3953
+ mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3954
+ /**
3955
+ * 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).
3956
+ *
3957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
3958
+ */
3959
+ unmap(): void;
3960
+ }
3961
+
3962
+ declare var GPUBuffer: {
3963
+ prototype: GPUBuffer;
3964
+ new(): GPUBuffer;
3965
+ };
3966
+
3911
3967
  /**
3912
3968
  * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
3913
3969
  * Available only in secure contexts.
@@ -3922,6 +3978,76 @@ declare var GPUCommandBuffer: {
3922
3978
  new(): GPUCommandBuffer;
3923
3979
  };
3924
3980
 
3981
+ /**
3982
+ * 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.
3983
+ * Available only in secure contexts.
3984
+ *
3985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3986
+ */
3987
+ interface GPUCompilationInfo {
3988
+ /**
3989
+ * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
3990
+ *
3991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
3992
+ */
3993
+ readonly messages: ReadonlyArray<GPUCompilationMessage>;
3994
+ }
3995
+
3996
+ declare var GPUCompilationInfo: {
3997
+ prototype: GPUCompilationInfo;
3998
+ new(): GPUCompilationInfo;
3999
+ };
4000
+
4001
+ /**
4002
+ * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
4003
+ * Available only in secure contexts.
4004
+ *
4005
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
4006
+ */
4007
+ interface GPUCompilationMessage {
4008
+ /**
4009
+ * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
4010
+ *
4011
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
4012
+ */
4013
+ readonly length: number;
4014
+ /**
4015
+ * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
4016
+ *
4017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
4018
+ */
4019
+ readonly lineNum: number;
4020
+ /**
4021
+ * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
4022
+ *
4023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
4024
+ */
4025
+ readonly linePos: number;
4026
+ /**
4027
+ * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
4028
+ *
4029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
4030
+ */
4031
+ readonly message: string;
4032
+ /**
4033
+ * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
4034
+ *
4035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
4036
+ */
4037
+ readonly offset: number;
4038
+ /**
4039
+ * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
4040
+ *
4041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
4042
+ */
4043
+ readonly type: GPUCompilationMessageType;
4044
+ }
4045
+
4046
+ declare var GPUCompilationMessage: {
4047
+ prototype: GPUCompilationMessage;
4048
+ new(): GPUCompilationMessage;
4049
+ };
4050
+
3925
4051
  /**
3926
4052
  * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
3927
4053
  * Available only in secure contexts.
@@ -4110,6 +4236,26 @@ declare var GPUSampler: {
4110
4236
  new(): GPUSampler;
4111
4237
  };
4112
4238
 
4239
+ /**
4240
+ * The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
4241
+ * Available only in secure contexts.
4242
+ *
4243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
4244
+ */
4245
+ interface GPUShaderModule extends GPUObjectBase {
4246
+ /**
4247
+ * The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
4248
+ *
4249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
4250
+ */
4251
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
4252
+ }
4253
+
4254
+ declare var GPUShaderModule: {
4255
+ prototype: GPUShaderModule;
4256
+ new(): GPUShaderModule;
4257
+ };
4258
+
4113
4259
  /**
4114
4260
  * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4115
4261
  * Available only in secure contexts.
@@ -6110,7 +6256,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
6110
6256
  */
6111
6257
  readonly redirectStart: DOMHighResTimeStamp;
6112
6258
  /**
6113
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
6259
+ * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
6114
6260
  *
6115
6261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
6116
6262
  */
@@ -11364,6 +11510,8 @@ declare namespace WebAssembly {
11364
11510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
11365
11511
  */
11366
11512
  grow(delta: AddressValue): AddressValue;
11513
+ toFixedLengthBuffer(): ArrayBuffer;
11514
+ toResizableBuffer(): ArrayBuffer;
11367
11515
  }
11368
11516
 
11369
11517
  var Memory: {
@@ -11882,7 +12030,10 @@ type GLuint64 = number;
11882
12030
  type GPUFlagsConstant = number;
11883
12031
  type GPUIntegerCoordinate = number;
11884
12032
  type GPUIntegerCoordinateOut = number;
12033
+ type GPUMapModeFlags = number;
11885
12034
  type GPUSize32Out = number;
12035
+ type GPUSize64 = number;
12036
+ type GPUSize64Out = number;
11886
12037
  type GPUTextureUsageFlags = number;
11887
12038
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11888
12039
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
@@ -11928,6 +12079,8 @@ type FileSystemHandleKind = "directory" | "file";
11928
12079
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11929
12080
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11930
12081
  type FontFaceSetLoadStatus = "loaded" | "loading";
12082
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12083
+ type GPUCompilationMessageType = "error" | "info" | "warning";
11931
12084
  type GPUDeviceLostReason = "destroyed" | "unknown";
11932
12085
  type GPUPipelineErrorReason = "internal" | "validation";
11933
12086
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";