@types/webworker 0.0.54 → 0.0.55
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 +165 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +165 -1
- package/ts5.6/index.d.ts +165 -1
- package/ts5.9/index.d.ts +165 -1
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.55 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.55.
|
package/index.d.ts
CHANGED
|
@@ -4930,6 +4930,62 @@ declare var GPUBindGroupLayout: {
|
|
|
4930
4930
|
new(): GPUBindGroupLayout;
|
|
4931
4931
|
};
|
|
4932
4932
|
|
|
4933
|
+
/**
|
|
4934
|
+
* 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.
|
|
4935
|
+
* Available only in secure contexts.
|
|
4936
|
+
*
|
|
4937
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
4938
|
+
*/
|
|
4939
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
4940
|
+
/**
|
|
4941
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
4942
|
+
*
|
|
4943
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
4944
|
+
*/
|
|
4945
|
+
readonly mapState: GPUBufferMapState;
|
|
4946
|
+
/**
|
|
4947
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
4948
|
+
*
|
|
4949
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
4950
|
+
*/
|
|
4951
|
+
readonly size: GPUSize64Out;
|
|
4952
|
+
/**
|
|
4953
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
4954
|
+
*
|
|
4955
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
4956
|
+
*/
|
|
4957
|
+
readonly usage: GPUFlagsConstant;
|
|
4958
|
+
/**
|
|
4959
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
4960
|
+
*
|
|
4961
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
4962
|
+
*/
|
|
4963
|
+
destroy(): void;
|
|
4964
|
+
/**
|
|
4965
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
4966
|
+
*
|
|
4967
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
4968
|
+
*/
|
|
4969
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
4970
|
+
/**
|
|
4971
|
+
* 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.
|
|
4972
|
+
*
|
|
4973
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
4974
|
+
*/
|
|
4975
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
4976
|
+
/**
|
|
4977
|
+
* 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).
|
|
4978
|
+
*
|
|
4979
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
4980
|
+
*/
|
|
4981
|
+
unmap(): void;
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
declare var GPUBuffer: {
|
|
4985
|
+
prototype: GPUBuffer;
|
|
4986
|
+
new(): GPUBuffer;
|
|
4987
|
+
};
|
|
4988
|
+
|
|
4933
4989
|
/**
|
|
4934
4990
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4935
4991
|
* Available only in secure contexts.
|
|
@@ -4944,6 +5000,76 @@ declare var GPUCommandBuffer: {
|
|
|
4944
5000
|
new(): GPUCommandBuffer;
|
|
4945
5001
|
};
|
|
4946
5002
|
|
|
5003
|
+
/**
|
|
5004
|
+
* 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.
|
|
5005
|
+
* Available only in secure contexts.
|
|
5006
|
+
*
|
|
5007
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
5008
|
+
*/
|
|
5009
|
+
interface GPUCompilationInfo {
|
|
5010
|
+
/**
|
|
5011
|
+
* 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.
|
|
5012
|
+
*
|
|
5013
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
5014
|
+
*/
|
|
5015
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
declare var GPUCompilationInfo: {
|
|
5019
|
+
prototype: GPUCompilationInfo;
|
|
5020
|
+
new(): GPUCompilationInfo;
|
|
5021
|
+
};
|
|
5022
|
+
|
|
5023
|
+
/**
|
|
5024
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
5025
|
+
* Available only in secure contexts.
|
|
5026
|
+
*
|
|
5027
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
5028
|
+
*/
|
|
5029
|
+
interface GPUCompilationMessage {
|
|
5030
|
+
/**
|
|
5031
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
5032
|
+
*
|
|
5033
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
5034
|
+
*/
|
|
5035
|
+
readonly length: number;
|
|
5036
|
+
/**
|
|
5037
|
+
* 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.
|
|
5038
|
+
*
|
|
5039
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
5040
|
+
*/
|
|
5041
|
+
readonly lineNum: number;
|
|
5042
|
+
/**
|
|
5043
|
+
* 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.
|
|
5044
|
+
*
|
|
5045
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
5046
|
+
*/
|
|
5047
|
+
readonly linePos: number;
|
|
5048
|
+
/**
|
|
5049
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
5050
|
+
*
|
|
5051
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
5052
|
+
*/
|
|
5053
|
+
readonly message: string;
|
|
5054
|
+
/**
|
|
5055
|
+
* 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.
|
|
5056
|
+
*
|
|
5057
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
5058
|
+
*/
|
|
5059
|
+
readonly offset: number;
|
|
5060
|
+
/**
|
|
5061
|
+
* 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.
|
|
5062
|
+
*
|
|
5063
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
5064
|
+
*/
|
|
5065
|
+
readonly type: GPUCompilationMessageType;
|
|
5066
|
+
}
|
|
5067
|
+
|
|
5068
|
+
declare var GPUCompilationMessage: {
|
|
5069
|
+
prototype: GPUCompilationMessage;
|
|
5070
|
+
new(): GPUCompilationMessage;
|
|
5071
|
+
};
|
|
5072
|
+
|
|
4947
5073
|
/**
|
|
4948
5074
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4949
5075
|
* Available only in secure contexts.
|
|
@@ -5132,6 +5258,26 @@ declare var GPUSampler: {
|
|
|
5132
5258
|
new(): GPUSampler;
|
|
5133
5259
|
};
|
|
5134
5260
|
|
|
5261
|
+
/**
|
|
5262
|
+
* 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.
|
|
5263
|
+
* Available only in secure contexts.
|
|
5264
|
+
*
|
|
5265
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
5266
|
+
*/
|
|
5267
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
5268
|
+
/**
|
|
5269
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
5270
|
+
*
|
|
5271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
5272
|
+
*/
|
|
5273
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
declare var GPUShaderModule: {
|
|
5277
|
+
prototype: GPUShaderModule;
|
|
5278
|
+
new(): GPUShaderModule;
|
|
5279
|
+
};
|
|
5280
|
+
|
|
5135
5281
|
/**
|
|
5136
5282
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5137
5283
|
* Available only in secure contexts.
|
|
@@ -6299,6 +6445,19 @@ interface ImportMeta {
|
|
|
6299
6445
|
resolve(specifier: string): string;
|
|
6300
6446
|
}
|
|
6301
6447
|
|
|
6448
|
+
/**
|
|
6449
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
6450
|
+
*
|
|
6451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6452
|
+
*/
|
|
6453
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6454
|
+
}
|
|
6455
|
+
|
|
6456
|
+
declare var InstallEvent: {
|
|
6457
|
+
prototype: InstallEvent;
|
|
6458
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6459
|
+
};
|
|
6460
|
+
|
|
6302
6461
|
/**
|
|
6303
6462
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
6304
6463
|
*
|
|
@@ -7328,7 +7487,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7328
7487
|
*/
|
|
7329
7488
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
7330
7489
|
/**
|
|
7331
|
-
* 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
|
|
7490
|
+
* 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.
|
|
7332
7491
|
*
|
|
7333
7492
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
7334
7493
|
*/
|
|
@@ -13879,7 +14038,10 @@ type GLuint64 = number;
|
|
|
13879
14038
|
type GPUFlagsConstant = number;
|
|
13880
14039
|
type GPUIntegerCoordinate = number;
|
|
13881
14040
|
type GPUIntegerCoordinateOut = number;
|
|
14041
|
+
type GPUMapModeFlags = number;
|
|
13882
14042
|
type GPUSize32Out = number;
|
|
14043
|
+
type GPUSize64 = number;
|
|
14044
|
+
type GPUSize64Out = number;
|
|
13883
14045
|
type GPUTextureUsageFlags = number;
|
|
13884
14046
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13885
14047
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -13938,6 +14100,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13938
14100
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13939
14101
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13940
14102
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14103
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14104
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13941
14105
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13942
14106
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13943
14107
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -4927,6 +4927,62 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
/**
|
|
4931
|
+
* 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.
|
|
4932
|
+
* Available only in secure contexts.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
4935
|
+
*/
|
|
4936
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly mapState: GPUBufferMapState;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly size: GPUSize64Out;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly usage: GPUFlagsConstant;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
4959
|
+
*/
|
|
4960
|
+
destroy(): void;
|
|
4961
|
+
/**
|
|
4962
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
4963
|
+
*
|
|
4964
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
4965
|
+
*/
|
|
4966
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
4967
|
+
/**
|
|
4968
|
+
* 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.
|
|
4969
|
+
*
|
|
4970
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
4971
|
+
*/
|
|
4972
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
4973
|
+
/**
|
|
4974
|
+
* 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).
|
|
4975
|
+
*
|
|
4976
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
4977
|
+
*/
|
|
4978
|
+
unmap(): void;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
declare var GPUBuffer: {
|
|
4982
|
+
prototype: GPUBuffer;
|
|
4983
|
+
new(): GPUBuffer;
|
|
4984
|
+
};
|
|
4985
|
+
|
|
4930
4986
|
/**
|
|
4931
4987
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4932
4988
|
* Available only in secure contexts.
|
|
@@ -4941,6 +4997,76 @@ declare var GPUCommandBuffer: {
|
|
|
4941
4997
|
new(): GPUCommandBuffer;
|
|
4942
4998
|
};
|
|
4943
4999
|
|
|
5000
|
+
/**
|
|
5001
|
+
* 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.
|
|
5002
|
+
* Available only in secure contexts.
|
|
5003
|
+
*
|
|
5004
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
5005
|
+
*/
|
|
5006
|
+
interface GPUCompilationInfo {
|
|
5007
|
+
/**
|
|
5008
|
+
* 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.
|
|
5009
|
+
*
|
|
5010
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
5011
|
+
*/
|
|
5012
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
declare var GPUCompilationInfo: {
|
|
5016
|
+
prototype: GPUCompilationInfo;
|
|
5017
|
+
new(): GPUCompilationInfo;
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
/**
|
|
5021
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
5022
|
+
* Available only in secure contexts.
|
|
5023
|
+
*
|
|
5024
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
5025
|
+
*/
|
|
5026
|
+
interface GPUCompilationMessage {
|
|
5027
|
+
/**
|
|
5028
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
5029
|
+
*
|
|
5030
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
5031
|
+
*/
|
|
5032
|
+
readonly length: number;
|
|
5033
|
+
/**
|
|
5034
|
+
* 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.
|
|
5035
|
+
*
|
|
5036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
5037
|
+
*/
|
|
5038
|
+
readonly lineNum: number;
|
|
5039
|
+
/**
|
|
5040
|
+
* 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.
|
|
5041
|
+
*
|
|
5042
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
5043
|
+
*/
|
|
5044
|
+
readonly linePos: number;
|
|
5045
|
+
/**
|
|
5046
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
5047
|
+
*
|
|
5048
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
5049
|
+
*/
|
|
5050
|
+
readonly message: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* 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.
|
|
5053
|
+
*
|
|
5054
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
5055
|
+
*/
|
|
5056
|
+
readonly offset: number;
|
|
5057
|
+
/**
|
|
5058
|
+
* 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.
|
|
5059
|
+
*
|
|
5060
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
5061
|
+
*/
|
|
5062
|
+
readonly type: GPUCompilationMessageType;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
declare var GPUCompilationMessage: {
|
|
5066
|
+
prototype: GPUCompilationMessage;
|
|
5067
|
+
new(): GPUCompilationMessage;
|
|
5068
|
+
};
|
|
5069
|
+
|
|
4944
5070
|
/**
|
|
4945
5071
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4946
5072
|
* Available only in secure contexts.
|
|
@@ -5129,6 +5255,26 @@ declare var GPUSampler: {
|
|
|
5129
5255
|
new(): GPUSampler;
|
|
5130
5256
|
};
|
|
5131
5257
|
|
|
5258
|
+
/**
|
|
5259
|
+
* 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.
|
|
5260
|
+
* Available only in secure contexts.
|
|
5261
|
+
*
|
|
5262
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
5263
|
+
*/
|
|
5264
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
5265
|
+
/**
|
|
5266
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
5267
|
+
*
|
|
5268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
5269
|
+
*/
|
|
5270
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
5271
|
+
}
|
|
5272
|
+
|
|
5273
|
+
declare var GPUShaderModule: {
|
|
5274
|
+
prototype: GPUShaderModule;
|
|
5275
|
+
new(): GPUShaderModule;
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5132
5278
|
/**
|
|
5133
5279
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5134
5280
|
* Available only in secure contexts.
|
|
@@ -6296,6 +6442,19 @@ interface ImportMeta {
|
|
|
6296
6442
|
resolve(specifier: string): string;
|
|
6297
6443
|
}
|
|
6298
6444
|
|
|
6445
|
+
/**
|
|
6446
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
6447
|
+
*
|
|
6448
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6449
|
+
*/
|
|
6450
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6453
|
+
declare var InstallEvent: {
|
|
6454
|
+
prototype: InstallEvent;
|
|
6455
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6456
|
+
};
|
|
6457
|
+
|
|
6299
6458
|
/**
|
|
6300
6459
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
6301
6460
|
*
|
|
@@ -7325,7 +7484,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7325
7484
|
*/
|
|
7326
7485
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
7327
7486
|
/**
|
|
7328
|
-
* 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
|
|
7487
|
+
* 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.
|
|
7329
7488
|
*
|
|
7330
7489
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
7331
7490
|
*/
|
|
@@ -13876,7 +14035,10 @@ type GLuint64 = number;
|
|
|
13876
14035
|
type GPUFlagsConstant = number;
|
|
13877
14036
|
type GPUIntegerCoordinate = number;
|
|
13878
14037
|
type GPUIntegerCoordinateOut = number;
|
|
14038
|
+
type GPUMapModeFlags = number;
|
|
13879
14039
|
type GPUSize32Out = number;
|
|
14040
|
+
type GPUSize64 = number;
|
|
14041
|
+
type GPUSize64Out = number;
|
|
13880
14042
|
type GPUTextureUsageFlags = number;
|
|
13881
14043
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13882
14044
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -13935,6 +14097,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13935
14097
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13936
14098
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13937
14099
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14100
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14101
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13938
14102
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13939
14103
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13940
14104
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -4927,6 +4927,62 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
/**
|
|
4931
|
+
* 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.
|
|
4932
|
+
* Available only in secure contexts.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
4935
|
+
*/
|
|
4936
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly mapState: GPUBufferMapState;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly size: GPUSize64Out;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly usage: GPUFlagsConstant;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
4959
|
+
*/
|
|
4960
|
+
destroy(): void;
|
|
4961
|
+
/**
|
|
4962
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
4963
|
+
*
|
|
4964
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
4965
|
+
*/
|
|
4966
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
4967
|
+
/**
|
|
4968
|
+
* 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.
|
|
4969
|
+
*
|
|
4970
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
4971
|
+
*/
|
|
4972
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
4973
|
+
/**
|
|
4974
|
+
* 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).
|
|
4975
|
+
*
|
|
4976
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
4977
|
+
*/
|
|
4978
|
+
unmap(): void;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
declare var GPUBuffer: {
|
|
4982
|
+
prototype: GPUBuffer;
|
|
4983
|
+
new(): GPUBuffer;
|
|
4984
|
+
};
|
|
4985
|
+
|
|
4930
4986
|
/**
|
|
4931
4987
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4932
4988
|
* Available only in secure contexts.
|
|
@@ -4941,6 +4997,76 @@ declare var GPUCommandBuffer: {
|
|
|
4941
4997
|
new(): GPUCommandBuffer;
|
|
4942
4998
|
};
|
|
4943
4999
|
|
|
5000
|
+
/**
|
|
5001
|
+
* 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.
|
|
5002
|
+
* Available only in secure contexts.
|
|
5003
|
+
*
|
|
5004
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
5005
|
+
*/
|
|
5006
|
+
interface GPUCompilationInfo {
|
|
5007
|
+
/**
|
|
5008
|
+
* 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.
|
|
5009
|
+
*
|
|
5010
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
5011
|
+
*/
|
|
5012
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
declare var GPUCompilationInfo: {
|
|
5016
|
+
prototype: GPUCompilationInfo;
|
|
5017
|
+
new(): GPUCompilationInfo;
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
/**
|
|
5021
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
5022
|
+
* Available only in secure contexts.
|
|
5023
|
+
*
|
|
5024
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
5025
|
+
*/
|
|
5026
|
+
interface GPUCompilationMessage {
|
|
5027
|
+
/**
|
|
5028
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
5029
|
+
*
|
|
5030
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
5031
|
+
*/
|
|
5032
|
+
readonly length: number;
|
|
5033
|
+
/**
|
|
5034
|
+
* 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.
|
|
5035
|
+
*
|
|
5036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
5037
|
+
*/
|
|
5038
|
+
readonly lineNum: number;
|
|
5039
|
+
/**
|
|
5040
|
+
* 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.
|
|
5041
|
+
*
|
|
5042
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
5043
|
+
*/
|
|
5044
|
+
readonly linePos: number;
|
|
5045
|
+
/**
|
|
5046
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
5047
|
+
*
|
|
5048
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
5049
|
+
*/
|
|
5050
|
+
readonly message: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* 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.
|
|
5053
|
+
*
|
|
5054
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
5055
|
+
*/
|
|
5056
|
+
readonly offset: number;
|
|
5057
|
+
/**
|
|
5058
|
+
* 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.
|
|
5059
|
+
*
|
|
5060
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
5061
|
+
*/
|
|
5062
|
+
readonly type: GPUCompilationMessageType;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
declare var GPUCompilationMessage: {
|
|
5066
|
+
prototype: GPUCompilationMessage;
|
|
5067
|
+
new(): GPUCompilationMessage;
|
|
5068
|
+
};
|
|
5069
|
+
|
|
4944
5070
|
/**
|
|
4945
5071
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4946
5072
|
* Available only in secure contexts.
|
|
@@ -5129,6 +5255,26 @@ declare var GPUSampler: {
|
|
|
5129
5255
|
new(): GPUSampler;
|
|
5130
5256
|
};
|
|
5131
5257
|
|
|
5258
|
+
/**
|
|
5259
|
+
* 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.
|
|
5260
|
+
* Available only in secure contexts.
|
|
5261
|
+
*
|
|
5262
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
5263
|
+
*/
|
|
5264
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
5265
|
+
/**
|
|
5266
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
5267
|
+
*
|
|
5268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
5269
|
+
*/
|
|
5270
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
5271
|
+
}
|
|
5272
|
+
|
|
5273
|
+
declare var GPUShaderModule: {
|
|
5274
|
+
prototype: GPUShaderModule;
|
|
5275
|
+
new(): GPUShaderModule;
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5132
5278
|
/**
|
|
5133
5279
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5134
5280
|
* Available only in secure contexts.
|
|
@@ -6296,6 +6442,19 @@ interface ImportMeta {
|
|
|
6296
6442
|
resolve(specifier: string): string;
|
|
6297
6443
|
}
|
|
6298
6444
|
|
|
6445
|
+
/**
|
|
6446
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
6447
|
+
*
|
|
6448
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6449
|
+
*/
|
|
6450
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6453
|
+
declare var InstallEvent: {
|
|
6454
|
+
prototype: InstallEvent;
|
|
6455
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6456
|
+
};
|
|
6457
|
+
|
|
6299
6458
|
/**
|
|
6300
6459
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
6301
6460
|
*
|
|
@@ -7325,7 +7484,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7325
7484
|
*/
|
|
7326
7485
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
7327
7486
|
/**
|
|
7328
|
-
* 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
|
|
7487
|
+
* 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.
|
|
7329
7488
|
*
|
|
7330
7489
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
7331
7490
|
*/
|
|
@@ -13876,7 +14035,10 @@ type GLuint64 = number;
|
|
|
13876
14035
|
type GPUFlagsConstant = number;
|
|
13877
14036
|
type GPUIntegerCoordinate = number;
|
|
13878
14037
|
type GPUIntegerCoordinateOut = number;
|
|
14038
|
+
type GPUMapModeFlags = number;
|
|
13879
14039
|
type GPUSize32Out = number;
|
|
14040
|
+
type GPUSize64 = number;
|
|
14041
|
+
type GPUSize64Out = number;
|
|
13880
14042
|
type GPUTextureUsageFlags = number;
|
|
13881
14043
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13882
14044
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -13935,6 +14097,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13935
14097
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13936
14098
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13937
14099
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14100
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14101
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13938
14102
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13939
14103
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13940
14104
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -4927,6 +4927,62 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
/**
|
|
4931
|
+
* 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.
|
|
4932
|
+
* Available only in secure contexts.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
4935
|
+
*/
|
|
4936
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly mapState: GPUBufferMapState;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly size: GPUSize64Out;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly usage: GPUFlagsConstant;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
4959
|
+
*/
|
|
4960
|
+
destroy(): void;
|
|
4961
|
+
/**
|
|
4962
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
4963
|
+
*
|
|
4964
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
4965
|
+
*/
|
|
4966
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
4967
|
+
/**
|
|
4968
|
+
* 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.
|
|
4969
|
+
*
|
|
4970
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
4971
|
+
*/
|
|
4972
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
4973
|
+
/**
|
|
4974
|
+
* 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).
|
|
4975
|
+
*
|
|
4976
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
4977
|
+
*/
|
|
4978
|
+
unmap(): void;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
declare var GPUBuffer: {
|
|
4982
|
+
prototype: GPUBuffer;
|
|
4983
|
+
new(): GPUBuffer;
|
|
4984
|
+
};
|
|
4985
|
+
|
|
4930
4986
|
/**
|
|
4931
4987
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4932
4988
|
* Available only in secure contexts.
|
|
@@ -4941,6 +4997,76 @@ declare var GPUCommandBuffer: {
|
|
|
4941
4997
|
new(): GPUCommandBuffer;
|
|
4942
4998
|
};
|
|
4943
4999
|
|
|
5000
|
+
/**
|
|
5001
|
+
* 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.
|
|
5002
|
+
* Available only in secure contexts.
|
|
5003
|
+
*
|
|
5004
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
5005
|
+
*/
|
|
5006
|
+
interface GPUCompilationInfo {
|
|
5007
|
+
/**
|
|
5008
|
+
* 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.
|
|
5009
|
+
*
|
|
5010
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
5011
|
+
*/
|
|
5012
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
declare var GPUCompilationInfo: {
|
|
5016
|
+
prototype: GPUCompilationInfo;
|
|
5017
|
+
new(): GPUCompilationInfo;
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
/**
|
|
5021
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
5022
|
+
* Available only in secure contexts.
|
|
5023
|
+
*
|
|
5024
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
5025
|
+
*/
|
|
5026
|
+
interface GPUCompilationMessage {
|
|
5027
|
+
/**
|
|
5028
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
5029
|
+
*
|
|
5030
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
5031
|
+
*/
|
|
5032
|
+
readonly length: number;
|
|
5033
|
+
/**
|
|
5034
|
+
* 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.
|
|
5035
|
+
*
|
|
5036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
5037
|
+
*/
|
|
5038
|
+
readonly lineNum: number;
|
|
5039
|
+
/**
|
|
5040
|
+
* 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.
|
|
5041
|
+
*
|
|
5042
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
5043
|
+
*/
|
|
5044
|
+
readonly linePos: number;
|
|
5045
|
+
/**
|
|
5046
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
5047
|
+
*
|
|
5048
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
5049
|
+
*/
|
|
5050
|
+
readonly message: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* 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.
|
|
5053
|
+
*
|
|
5054
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
5055
|
+
*/
|
|
5056
|
+
readonly offset: number;
|
|
5057
|
+
/**
|
|
5058
|
+
* 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.
|
|
5059
|
+
*
|
|
5060
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
5061
|
+
*/
|
|
5062
|
+
readonly type: GPUCompilationMessageType;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
declare var GPUCompilationMessage: {
|
|
5066
|
+
prototype: GPUCompilationMessage;
|
|
5067
|
+
new(): GPUCompilationMessage;
|
|
5068
|
+
};
|
|
5069
|
+
|
|
4944
5070
|
/**
|
|
4945
5071
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4946
5072
|
* Available only in secure contexts.
|
|
@@ -5129,6 +5255,26 @@ declare var GPUSampler: {
|
|
|
5129
5255
|
new(): GPUSampler;
|
|
5130
5256
|
};
|
|
5131
5257
|
|
|
5258
|
+
/**
|
|
5259
|
+
* 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.
|
|
5260
|
+
* Available only in secure contexts.
|
|
5261
|
+
*
|
|
5262
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
5263
|
+
*/
|
|
5264
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
5265
|
+
/**
|
|
5266
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
5267
|
+
*
|
|
5268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
5269
|
+
*/
|
|
5270
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
5271
|
+
}
|
|
5272
|
+
|
|
5273
|
+
declare var GPUShaderModule: {
|
|
5274
|
+
prototype: GPUShaderModule;
|
|
5275
|
+
new(): GPUShaderModule;
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5132
5278
|
/**
|
|
5133
5279
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5134
5280
|
* Available only in secure contexts.
|
|
@@ -6296,6 +6442,19 @@ interface ImportMeta {
|
|
|
6296
6442
|
resolve(specifier: string): string;
|
|
6297
6443
|
}
|
|
6298
6444
|
|
|
6445
|
+
/**
|
|
6446
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
6447
|
+
*
|
|
6448
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6449
|
+
*/
|
|
6450
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6453
|
+
declare var InstallEvent: {
|
|
6454
|
+
prototype: InstallEvent;
|
|
6455
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6456
|
+
};
|
|
6457
|
+
|
|
6299
6458
|
/**
|
|
6300
6459
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
6301
6460
|
*
|
|
@@ -7325,7 +7484,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7325
7484
|
*/
|
|
7326
7485
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
7327
7486
|
/**
|
|
7328
|
-
* 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
|
|
7487
|
+
* 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.
|
|
7329
7488
|
*
|
|
7330
7489
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
7331
7490
|
*/
|
|
@@ -13876,7 +14035,10 @@ type GLuint64 = number;
|
|
|
13876
14035
|
type GPUFlagsConstant = number;
|
|
13877
14036
|
type GPUIntegerCoordinate = number;
|
|
13878
14037
|
type GPUIntegerCoordinateOut = number;
|
|
14038
|
+
type GPUMapModeFlags = number;
|
|
13879
14039
|
type GPUSize32Out = number;
|
|
14040
|
+
type GPUSize64 = number;
|
|
14041
|
+
type GPUSize64Out = number;
|
|
13880
14042
|
type GPUTextureUsageFlags = number;
|
|
13881
14043
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13882
14044
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -13935,6 +14097,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13935
14097
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13936
14098
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13937
14099
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14100
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14101
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13938
14102
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13939
14103
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13940
14104
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|