@types/web 0.0.316 → 0.0.318
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 +154 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +154 -2
- package/ts5.6/index.d.ts +154 -2
- package/ts5.9/index.d.ts +154 -2
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.318 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.318.
|
package/index.d.ts
CHANGED
|
@@ -14751,6 +14751,62 @@ declare var GPUBindGroupLayout: {
|
|
|
14751
14751
|
new(): GPUBindGroupLayout;
|
|
14752
14752
|
};
|
|
14753
14753
|
|
|
14754
|
+
/**
|
|
14755
|
+
* 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.
|
|
14756
|
+
* Available only in secure contexts.
|
|
14757
|
+
*
|
|
14758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
14759
|
+
*/
|
|
14760
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
14761
|
+
/**
|
|
14762
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
14763
|
+
*
|
|
14764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
14765
|
+
*/
|
|
14766
|
+
readonly mapState: GPUBufferMapState;
|
|
14767
|
+
/**
|
|
14768
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
14769
|
+
*
|
|
14770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
14771
|
+
*/
|
|
14772
|
+
readonly size: GPUSize64Out;
|
|
14773
|
+
/**
|
|
14774
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
14775
|
+
*
|
|
14776
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
14777
|
+
*/
|
|
14778
|
+
readonly usage: GPUFlagsConstant;
|
|
14779
|
+
/**
|
|
14780
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
14781
|
+
*
|
|
14782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
14783
|
+
*/
|
|
14784
|
+
destroy(): void;
|
|
14785
|
+
/**
|
|
14786
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
14787
|
+
*
|
|
14788
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
14789
|
+
*/
|
|
14790
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
14791
|
+
/**
|
|
14792
|
+
* 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.
|
|
14793
|
+
*
|
|
14794
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
14795
|
+
*/
|
|
14796
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
14797
|
+
/**
|
|
14798
|
+
* 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).
|
|
14799
|
+
*
|
|
14800
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
14801
|
+
*/
|
|
14802
|
+
unmap(): void;
|
|
14803
|
+
}
|
|
14804
|
+
|
|
14805
|
+
declare var GPUBuffer: {
|
|
14806
|
+
prototype: GPUBuffer;
|
|
14807
|
+
new(): GPUBuffer;
|
|
14808
|
+
};
|
|
14809
|
+
|
|
14754
14810
|
/**
|
|
14755
14811
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14756
14812
|
* Available only in secure contexts.
|
|
@@ -14765,6 +14821,76 @@ declare var GPUCommandBuffer: {
|
|
|
14765
14821
|
new(): GPUCommandBuffer;
|
|
14766
14822
|
};
|
|
14767
14823
|
|
|
14824
|
+
/**
|
|
14825
|
+
* 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.
|
|
14826
|
+
* Available only in secure contexts.
|
|
14827
|
+
*
|
|
14828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
14829
|
+
*/
|
|
14830
|
+
interface GPUCompilationInfo {
|
|
14831
|
+
/**
|
|
14832
|
+
* 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.
|
|
14833
|
+
*
|
|
14834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
14835
|
+
*/
|
|
14836
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
14837
|
+
}
|
|
14838
|
+
|
|
14839
|
+
declare var GPUCompilationInfo: {
|
|
14840
|
+
prototype: GPUCompilationInfo;
|
|
14841
|
+
new(): GPUCompilationInfo;
|
|
14842
|
+
};
|
|
14843
|
+
|
|
14844
|
+
/**
|
|
14845
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
14846
|
+
* Available only in secure contexts.
|
|
14847
|
+
*
|
|
14848
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
14849
|
+
*/
|
|
14850
|
+
interface GPUCompilationMessage {
|
|
14851
|
+
/**
|
|
14852
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
14853
|
+
*
|
|
14854
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
14855
|
+
*/
|
|
14856
|
+
readonly length: number;
|
|
14857
|
+
/**
|
|
14858
|
+
* 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.
|
|
14859
|
+
*
|
|
14860
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
14861
|
+
*/
|
|
14862
|
+
readonly lineNum: number;
|
|
14863
|
+
/**
|
|
14864
|
+
* 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.
|
|
14865
|
+
*
|
|
14866
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
14867
|
+
*/
|
|
14868
|
+
readonly linePos: number;
|
|
14869
|
+
/**
|
|
14870
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
14871
|
+
*
|
|
14872
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
14873
|
+
*/
|
|
14874
|
+
readonly message: string;
|
|
14875
|
+
/**
|
|
14876
|
+
* 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.
|
|
14877
|
+
*
|
|
14878
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
14879
|
+
*/
|
|
14880
|
+
readonly offset: number;
|
|
14881
|
+
/**
|
|
14882
|
+
* 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.
|
|
14883
|
+
*
|
|
14884
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
14885
|
+
*/
|
|
14886
|
+
readonly type: GPUCompilationMessageType;
|
|
14887
|
+
}
|
|
14888
|
+
|
|
14889
|
+
declare var GPUCompilationMessage: {
|
|
14890
|
+
prototype: GPUCompilationMessage;
|
|
14891
|
+
new(): GPUCompilationMessage;
|
|
14892
|
+
};
|
|
14893
|
+
|
|
14768
14894
|
/**
|
|
14769
14895
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14770
14896
|
* Available only in secure contexts.
|
|
@@ -14953,6 +15079,26 @@ declare var GPUSampler: {
|
|
|
14953
15079
|
new(): GPUSampler;
|
|
14954
15080
|
};
|
|
14955
15081
|
|
|
15082
|
+
/**
|
|
15083
|
+
* 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.
|
|
15084
|
+
* Available only in secure contexts.
|
|
15085
|
+
*
|
|
15086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
15087
|
+
*/
|
|
15088
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
15089
|
+
/**
|
|
15090
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
15091
|
+
*
|
|
15092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
15093
|
+
*/
|
|
15094
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
15095
|
+
}
|
|
15096
|
+
|
|
15097
|
+
declare var GPUShaderModule: {
|
|
15098
|
+
prototype: GPUShaderModule;
|
|
15099
|
+
new(): GPUShaderModule;
|
|
15100
|
+
};
|
|
15101
|
+
|
|
14956
15102
|
/**
|
|
14957
15103
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
14958
15104
|
* Available only in secure contexts.
|
|
@@ -26256,11 +26402,12 @@ interface PerformanceEventMap {
|
|
|
26256
26402
|
*/
|
|
26257
26403
|
interface Performance extends EventTarget {
|
|
26258
26404
|
/**
|
|
26259
|
-
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type.
|
|
26405
|
+
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type since the page was loaded.
|
|
26260
26406
|
*
|
|
26261
26407
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
26262
26408
|
*/
|
|
26263
26409
|
readonly eventCounts: EventCounts;
|
|
26410
|
+
/** The read-only **`performance.interactionCount`** property represents the number of real-user interactions that have occurred on the page since it was loaded. */
|
|
26264
26411
|
readonly interactionCount: number;
|
|
26265
26412
|
/**
|
|
26266
26413
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
@@ -26774,7 +26921,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
26774
26921
|
*/
|
|
26775
26922
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
26776
26923
|
/**
|
|
26777
|
-
* 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
|
|
26924
|
+
* 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.
|
|
26778
26925
|
*
|
|
26779
26926
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
26780
26927
|
*/
|
|
@@ -42913,7 +43060,10 @@ type GLuint64 = number;
|
|
|
42913
43060
|
type GPUFlagsConstant = number;
|
|
42914
43061
|
type GPUIntegerCoordinate = number;
|
|
42915
43062
|
type GPUIntegerCoordinateOut = number;
|
|
43063
|
+
type GPUMapModeFlags = number;
|
|
42916
43064
|
type GPUSize32Out = number;
|
|
43065
|
+
type GPUSize64 = number;
|
|
43066
|
+
type GPUSize64Out = number;
|
|
42917
43067
|
type GPUTextureUsageFlags = number;
|
|
42918
43068
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
42919
43069
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43018,6 +43168,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43018
43168
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43019
43169
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43020
43170
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43171
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43172
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43021
43173
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43022
43174
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43023
43175
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -14737,6 +14737,62 @@ declare var GPUBindGroupLayout: {
|
|
|
14737
14737
|
new(): GPUBindGroupLayout;
|
|
14738
14738
|
};
|
|
14739
14739
|
|
|
14740
|
+
/**
|
|
14741
|
+
* 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.
|
|
14742
|
+
* Available only in secure contexts.
|
|
14743
|
+
*
|
|
14744
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
14745
|
+
*/
|
|
14746
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
14747
|
+
/**
|
|
14748
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
14749
|
+
*
|
|
14750
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
14751
|
+
*/
|
|
14752
|
+
readonly mapState: GPUBufferMapState;
|
|
14753
|
+
/**
|
|
14754
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
14755
|
+
*
|
|
14756
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
14757
|
+
*/
|
|
14758
|
+
readonly size: GPUSize64Out;
|
|
14759
|
+
/**
|
|
14760
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
14761
|
+
*
|
|
14762
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
14763
|
+
*/
|
|
14764
|
+
readonly usage: GPUFlagsConstant;
|
|
14765
|
+
/**
|
|
14766
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
14767
|
+
*
|
|
14768
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
14769
|
+
*/
|
|
14770
|
+
destroy(): void;
|
|
14771
|
+
/**
|
|
14772
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
14773
|
+
*
|
|
14774
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
14775
|
+
*/
|
|
14776
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
14777
|
+
/**
|
|
14778
|
+
* 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.
|
|
14779
|
+
*
|
|
14780
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
14781
|
+
*/
|
|
14782
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
14783
|
+
/**
|
|
14784
|
+
* 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).
|
|
14785
|
+
*
|
|
14786
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
14787
|
+
*/
|
|
14788
|
+
unmap(): void;
|
|
14789
|
+
}
|
|
14790
|
+
|
|
14791
|
+
declare var GPUBuffer: {
|
|
14792
|
+
prototype: GPUBuffer;
|
|
14793
|
+
new(): GPUBuffer;
|
|
14794
|
+
};
|
|
14795
|
+
|
|
14740
14796
|
/**
|
|
14741
14797
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14742
14798
|
* Available only in secure contexts.
|
|
@@ -14751,6 +14807,76 @@ declare var GPUCommandBuffer: {
|
|
|
14751
14807
|
new(): GPUCommandBuffer;
|
|
14752
14808
|
};
|
|
14753
14809
|
|
|
14810
|
+
/**
|
|
14811
|
+
* 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.
|
|
14812
|
+
* Available only in secure contexts.
|
|
14813
|
+
*
|
|
14814
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
14815
|
+
*/
|
|
14816
|
+
interface GPUCompilationInfo {
|
|
14817
|
+
/**
|
|
14818
|
+
* 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.
|
|
14819
|
+
*
|
|
14820
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
14821
|
+
*/
|
|
14822
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
14823
|
+
}
|
|
14824
|
+
|
|
14825
|
+
declare var GPUCompilationInfo: {
|
|
14826
|
+
prototype: GPUCompilationInfo;
|
|
14827
|
+
new(): GPUCompilationInfo;
|
|
14828
|
+
};
|
|
14829
|
+
|
|
14830
|
+
/**
|
|
14831
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
14832
|
+
* Available only in secure contexts.
|
|
14833
|
+
*
|
|
14834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
14835
|
+
*/
|
|
14836
|
+
interface GPUCompilationMessage {
|
|
14837
|
+
/**
|
|
14838
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
14839
|
+
*
|
|
14840
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
14841
|
+
*/
|
|
14842
|
+
readonly length: number;
|
|
14843
|
+
/**
|
|
14844
|
+
* 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.
|
|
14845
|
+
*
|
|
14846
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
14847
|
+
*/
|
|
14848
|
+
readonly lineNum: number;
|
|
14849
|
+
/**
|
|
14850
|
+
* 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.
|
|
14851
|
+
*
|
|
14852
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
14853
|
+
*/
|
|
14854
|
+
readonly linePos: number;
|
|
14855
|
+
/**
|
|
14856
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
14857
|
+
*
|
|
14858
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
14859
|
+
*/
|
|
14860
|
+
readonly message: string;
|
|
14861
|
+
/**
|
|
14862
|
+
* 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.
|
|
14863
|
+
*
|
|
14864
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
14865
|
+
*/
|
|
14866
|
+
readonly offset: number;
|
|
14867
|
+
/**
|
|
14868
|
+
* 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.
|
|
14869
|
+
*
|
|
14870
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
14871
|
+
*/
|
|
14872
|
+
readonly type: GPUCompilationMessageType;
|
|
14873
|
+
}
|
|
14874
|
+
|
|
14875
|
+
declare var GPUCompilationMessage: {
|
|
14876
|
+
prototype: GPUCompilationMessage;
|
|
14877
|
+
new(): GPUCompilationMessage;
|
|
14878
|
+
};
|
|
14879
|
+
|
|
14754
14880
|
/**
|
|
14755
14881
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14756
14882
|
* Available only in secure contexts.
|
|
@@ -14939,6 +15065,26 @@ declare var GPUSampler: {
|
|
|
14939
15065
|
new(): GPUSampler;
|
|
14940
15066
|
};
|
|
14941
15067
|
|
|
15068
|
+
/**
|
|
15069
|
+
* 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.
|
|
15070
|
+
* Available only in secure contexts.
|
|
15071
|
+
*
|
|
15072
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
15073
|
+
*/
|
|
15074
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
15075
|
+
/**
|
|
15076
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
15077
|
+
*
|
|
15078
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
15079
|
+
*/
|
|
15080
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
15081
|
+
}
|
|
15082
|
+
|
|
15083
|
+
declare var GPUShaderModule: {
|
|
15084
|
+
prototype: GPUShaderModule;
|
|
15085
|
+
new(): GPUShaderModule;
|
|
15086
|
+
};
|
|
15087
|
+
|
|
14942
15088
|
/**
|
|
14943
15089
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
14944
15090
|
* Available only in secure contexts.
|
|
@@ -26232,11 +26378,12 @@ interface PerformanceEventMap {
|
|
|
26232
26378
|
*/
|
|
26233
26379
|
interface Performance extends EventTarget {
|
|
26234
26380
|
/**
|
|
26235
|
-
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type.
|
|
26381
|
+
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type since the page was loaded.
|
|
26236
26382
|
*
|
|
26237
26383
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
26238
26384
|
*/
|
|
26239
26385
|
readonly eventCounts: EventCounts;
|
|
26386
|
+
/** The read-only **`performance.interactionCount`** property represents the number of real-user interactions that have occurred on the page since it was loaded. */
|
|
26240
26387
|
readonly interactionCount: number;
|
|
26241
26388
|
/**
|
|
26242
26389
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
@@ -26750,7 +26897,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
26750
26897
|
*/
|
|
26751
26898
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
26752
26899
|
/**
|
|
26753
|
-
* 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
|
|
26900
|
+
* 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.
|
|
26754
26901
|
*
|
|
26755
26902
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
26756
26903
|
*/
|
|
@@ -42887,7 +43034,10 @@ type GLuint64 = number;
|
|
|
42887
43034
|
type GPUFlagsConstant = number;
|
|
42888
43035
|
type GPUIntegerCoordinate = number;
|
|
42889
43036
|
type GPUIntegerCoordinateOut = number;
|
|
43037
|
+
type GPUMapModeFlags = number;
|
|
42890
43038
|
type GPUSize32Out = number;
|
|
43039
|
+
type GPUSize64 = number;
|
|
43040
|
+
type GPUSize64Out = number;
|
|
42891
43041
|
type GPUTextureUsageFlags = number;
|
|
42892
43042
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
42893
43043
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -42992,6 +43142,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
42992
43142
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
42993
43143
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
42994
43144
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43145
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43146
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
42995
43147
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
42996
43148
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
42997
43149
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -14748,6 +14748,62 @@ declare var GPUBindGroupLayout: {
|
|
|
14748
14748
|
new(): GPUBindGroupLayout;
|
|
14749
14749
|
};
|
|
14750
14750
|
|
|
14751
|
+
/**
|
|
14752
|
+
* 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.
|
|
14753
|
+
* Available only in secure contexts.
|
|
14754
|
+
*
|
|
14755
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
14756
|
+
*/
|
|
14757
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
14758
|
+
/**
|
|
14759
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
14760
|
+
*
|
|
14761
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
14762
|
+
*/
|
|
14763
|
+
readonly mapState: GPUBufferMapState;
|
|
14764
|
+
/**
|
|
14765
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
14766
|
+
*
|
|
14767
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
14768
|
+
*/
|
|
14769
|
+
readonly size: GPUSize64Out;
|
|
14770
|
+
/**
|
|
14771
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
14772
|
+
*
|
|
14773
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
14774
|
+
*/
|
|
14775
|
+
readonly usage: GPUFlagsConstant;
|
|
14776
|
+
/**
|
|
14777
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
14778
|
+
*
|
|
14779
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
14780
|
+
*/
|
|
14781
|
+
destroy(): void;
|
|
14782
|
+
/**
|
|
14783
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
14784
|
+
*
|
|
14785
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
14786
|
+
*/
|
|
14787
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
14788
|
+
/**
|
|
14789
|
+
* 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.
|
|
14790
|
+
*
|
|
14791
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
14792
|
+
*/
|
|
14793
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
14794
|
+
/**
|
|
14795
|
+
* 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).
|
|
14796
|
+
*
|
|
14797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
14798
|
+
*/
|
|
14799
|
+
unmap(): void;
|
|
14800
|
+
}
|
|
14801
|
+
|
|
14802
|
+
declare var GPUBuffer: {
|
|
14803
|
+
prototype: GPUBuffer;
|
|
14804
|
+
new(): GPUBuffer;
|
|
14805
|
+
};
|
|
14806
|
+
|
|
14751
14807
|
/**
|
|
14752
14808
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14753
14809
|
* Available only in secure contexts.
|
|
@@ -14762,6 +14818,76 @@ declare var GPUCommandBuffer: {
|
|
|
14762
14818
|
new(): GPUCommandBuffer;
|
|
14763
14819
|
};
|
|
14764
14820
|
|
|
14821
|
+
/**
|
|
14822
|
+
* 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.
|
|
14823
|
+
* Available only in secure contexts.
|
|
14824
|
+
*
|
|
14825
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
14826
|
+
*/
|
|
14827
|
+
interface GPUCompilationInfo {
|
|
14828
|
+
/**
|
|
14829
|
+
* 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.
|
|
14830
|
+
*
|
|
14831
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
14832
|
+
*/
|
|
14833
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
14834
|
+
}
|
|
14835
|
+
|
|
14836
|
+
declare var GPUCompilationInfo: {
|
|
14837
|
+
prototype: GPUCompilationInfo;
|
|
14838
|
+
new(): GPUCompilationInfo;
|
|
14839
|
+
};
|
|
14840
|
+
|
|
14841
|
+
/**
|
|
14842
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
14843
|
+
* Available only in secure contexts.
|
|
14844
|
+
*
|
|
14845
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
14846
|
+
*/
|
|
14847
|
+
interface GPUCompilationMessage {
|
|
14848
|
+
/**
|
|
14849
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
14850
|
+
*
|
|
14851
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
14852
|
+
*/
|
|
14853
|
+
readonly length: number;
|
|
14854
|
+
/**
|
|
14855
|
+
* 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.
|
|
14856
|
+
*
|
|
14857
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
14858
|
+
*/
|
|
14859
|
+
readonly lineNum: number;
|
|
14860
|
+
/**
|
|
14861
|
+
* 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.
|
|
14862
|
+
*
|
|
14863
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
14864
|
+
*/
|
|
14865
|
+
readonly linePos: number;
|
|
14866
|
+
/**
|
|
14867
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
14868
|
+
*
|
|
14869
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
14870
|
+
*/
|
|
14871
|
+
readonly message: string;
|
|
14872
|
+
/**
|
|
14873
|
+
* 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.
|
|
14874
|
+
*
|
|
14875
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
14876
|
+
*/
|
|
14877
|
+
readonly offset: number;
|
|
14878
|
+
/**
|
|
14879
|
+
* 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.
|
|
14880
|
+
*
|
|
14881
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
14882
|
+
*/
|
|
14883
|
+
readonly type: GPUCompilationMessageType;
|
|
14884
|
+
}
|
|
14885
|
+
|
|
14886
|
+
declare var GPUCompilationMessage: {
|
|
14887
|
+
prototype: GPUCompilationMessage;
|
|
14888
|
+
new(): GPUCompilationMessage;
|
|
14889
|
+
};
|
|
14890
|
+
|
|
14765
14891
|
/**
|
|
14766
14892
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14767
14893
|
* Available only in secure contexts.
|
|
@@ -14950,6 +15076,26 @@ declare var GPUSampler: {
|
|
|
14950
15076
|
new(): GPUSampler;
|
|
14951
15077
|
};
|
|
14952
15078
|
|
|
15079
|
+
/**
|
|
15080
|
+
* 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.
|
|
15081
|
+
* Available only in secure contexts.
|
|
15082
|
+
*
|
|
15083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
15084
|
+
*/
|
|
15085
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
15086
|
+
/**
|
|
15087
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
15088
|
+
*
|
|
15089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
15090
|
+
*/
|
|
15091
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
15092
|
+
}
|
|
15093
|
+
|
|
15094
|
+
declare var GPUShaderModule: {
|
|
15095
|
+
prototype: GPUShaderModule;
|
|
15096
|
+
new(): GPUShaderModule;
|
|
15097
|
+
};
|
|
15098
|
+
|
|
14953
15099
|
/**
|
|
14954
15100
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
14955
15101
|
* Available only in secure contexts.
|
|
@@ -26253,11 +26399,12 @@ interface PerformanceEventMap {
|
|
|
26253
26399
|
*/
|
|
26254
26400
|
interface Performance extends EventTarget {
|
|
26255
26401
|
/**
|
|
26256
|
-
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type.
|
|
26402
|
+
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type since the page was loaded.
|
|
26257
26403
|
*
|
|
26258
26404
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
26259
26405
|
*/
|
|
26260
26406
|
readonly eventCounts: EventCounts;
|
|
26407
|
+
/** The read-only **`performance.interactionCount`** property represents the number of real-user interactions that have occurred on the page since it was loaded. */
|
|
26261
26408
|
readonly interactionCount: number;
|
|
26262
26409
|
/**
|
|
26263
26410
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
@@ -26771,7 +26918,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
26771
26918
|
*/
|
|
26772
26919
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
26773
26920
|
/**
|
|
26774
|
-
* 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
|
|
26921
|
+
* 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.
|
|
26775
26922
|
*
|
|
26776
26923
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
26777
26924
|
*/
|
|
@@ -42910,7 +43057,10 @@ type GLuint64 = number;
|
|
|
42910
43057
|
type GPUFlagsConstant = number;
|
|
42911
43058
|
type GPUIntegerCoordinate = number;
|
|
42912
43059
|
type GPUIntegerCoordinateOut = number;
|
|
43060
|
+
type GPUMapModeFlags = number;
|
|
42913
43061
|
type GPUSize32Out = number;
|
|
43062
|
+
type GPUSize64 = number;
|
|
43063
|
+
type GPUSize64Out = number;
|
|
42914
43064
|
type GPUTextureUsageFlags = number;
|
|
42915
43065
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
42916
43066
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43015,6 +43165,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43015
43165
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43016
43166
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43017
43167
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43168
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43169
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43018
43170
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43019
43171
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43020
43172
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -14748,6 +14748,62 @@ declare var GPUBindGroupLayout: {
|
|
|
14748
14748
|
new(): GPUBindGroupLayout;
|
|
14749
14749
|
};
|
|
14750
14750
|
|
|
14751
|
+
/**
|
|
14752
|
+
* 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.
|
|
14753
|
+
* Available only in secure contexts.
|
|
14754
|
+
*
|
|
14755
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
14756
|
+
*/
|
|
14757
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
14758
|
+
/**
|
|
14759
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
14760
|
+
*
|
|
14761
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
14762
|
+
*/
|
|
14763
|
+
readonly mapState: GPUBufferMapState;
|
|
14764
|
+
/**
|
|
14765
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
14766
|
+
*
|
|
14767
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
14768
|
+
*/
|
|
14769
|
+
readonly size: GPUSize64Out;
|
|
14770
|
+
/**
|
|
14771
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
14772
|
+
*
|
|
14773
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
14774
|
+
*/
|
|
14775
|
+
readonly usage: GPUFlagsConstant;
|
|
14776
|
+
/**
|
|
14777
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
14778
|
+
*
|
|
14779
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
14780
|
+
*/
|
|
14781
|
+
destroy(): void;
|
|
14782
|
+
/**
|
|
14783
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
14784
|
+
*
|
|
14785
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
14786
|
+
*/
|
|
14787
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
14788
|
+
/**
|
|
14789
|
+
* 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.
|
|
14790
|
+
*
|
|
14791
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
14792
|
+
*/
|
|
14793
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
14794
|
+
/**
|
|
14795
|
+
* 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).
|
|
14796
|
+
*
|
|
14797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
14798
|
+
*/
|
|
14799
|
+
unmap(): void;
|
|
14800
|
+
}
|
|
14801
|
+
|
|
14802
|
+
declare var GPUBuffer: {
|
|
14803
|
+
prototype: GPUBuffer;
|
|
14804
|
+
new(): GPUBuffer;
|
|
14805
|
+
};
|
|
14806
|
+
|
|
14751
14807
|
/**
|
|
14752
14808
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14753
14809
|
* Available only in secure contexts.
|
|
@@ -14762,6 +14818,76 @@ declare var GPUCommandBuffer: {
|
|
|
14762
14818
|
new(): GPUCommandBuffer;
|
|
14763
14819
|
};
|
|
14764
14820
|
|
|
14821
|
+
/**
|
|
14822
|
+
* 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.
|
|
14823
|
+
* Available only in secure contexts.
|
|
14824
|
+
*
|
|
14825
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
14826
|
+
*/
|
|
14827
|
+
interface GPUCompilationInfo {
|
|
14828
|
+
/**
|
|
14829
|
+
* 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.
|
|
14830
|
+
*
|
|
14831
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
14832
|
+
*/
|
|
14833
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
14834
|
+
}
|
|
14835
|
+
|
|
14836
|
+
declare var GPUCompilationInfo: {
|
|
14837
|
+
prototype: GPUCompilationInfo;
|
|
14838
|
+
new(): GPUCompilationInfo;
|
|
14839
|
+
};
|
|
14840
|
+
|
|
14841
|
+
/**
|
|
14842
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
14843
|
+
* Available only in secure contexts.
|
|
14844
|
+
*
|
|
14845
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
14846
|
+
*/
|
|
14847
|
+
interface GPUCompilationMessage {
|
|
14848
|
+
/**
|
|
14849
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
14850
|
+
*
|
|
14851
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
14852
|
+
*/
|
|
14853
|
+
readonly length: number;
|
|
14854
|
+
/**
|
|
14855
|
+
* 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.
|
|
14856
|
+
*
|
|
14857
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
14858
|
+
*/
|
|
14859
|
+
readonly lineNum: number;
|
|
14860
|
+
/**
|
|
14861
|
+
* 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.
|
|
14862
|
+
*
|
|
14863
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
14864
|
+
*/
|
|
14865
|
+
readonly linePos: number;
|
|
14866
|
+
/**
|
|
14867
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
14868
|
+
*
|
|
14869
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
14870
|
+
*/
|
|
14871
|
+
readonly message: string;
|
|
14872
|
+
/**
|
|
14873
|
+
* 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.
|
|
14874
|
+
*
|
|
14875
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
14876
|
+
*/
|
|
14877
|
+
readonly offset: number;
|
|
14878
|
+
/**
|
|
14879
|
+
* 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.
|
|
14880
|
+
*
|
|
14881
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
14882
|
+
*/
|
|
14883
|
+
readonly type: GPUCompilationMessageType;
|
|
14884
|
+
}
|
|
14885
|
+
|
|
14886
|
+
declare var GPUCompilationMessage: {
|
|
14887
|
+
prototype: GPUCompilationMessage;
|
|
14888
|
+
new(): GPUCompilationMessage;
|
|
14889
|
+
};
|
|
14890
|
+
|
|
14765
14891
|
/**
|
|
14766
14892
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14767
14893
|
* Available only in secure contexts.
|
|
@@ -14950,6 +15076,26 @@ declare var GPUSampler: {
|
|
|
14950
15076
|
new(): GPUSampler;
|
|
14951
15077
|
};
|
|
14952
15078
|
|
|
15079
|
+
/**
|
|
15080
|
+
* 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.
|
|
15081
|
+
* Available only in secure contexts.
|
|
15082
|
+
*
|
|
15083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
15084
|
+
*/
|
|
15085
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
15086
|
+
/**
|
|
15087
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
15088
|
+
*
|
|
15089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
15090
|
+
*/
|
|
15091
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
15092
|
+
}
|
|
15093
|
+
|
|
15094
|
+
declare var GPUShaderModule: {
|
|
15095
|
+
prototype: GPUShaderModule;
|
|
15096
|
+
new(): GPUShaderModule;
|
|
15097
|
+
};
|
|
15098
|
+
|
|
14953
15099
|
/**
|
|
14954
15100
|
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
14955
15101
|
* Available only in secure contexts.
|
|
@@ -26253,11 +26399,12 @@ interface PerformanceEventMap {
|
|
|
26253
26399
|
*/
|
|
26254
26400
|
interface Performance extends EventTarget {
|
|
26255
26401
|
/**
|
|
26256
|
-
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type.
|
|
26402
|
+
* The read-only **`performance.eventCounts`** property is an EventCounts map containing the number of events which have been dispatched per event type since the page was loaded.
|
|
26257
26403
|
*
|
|
26258
26404
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
26259
26405
|
*/
|
|
26260
26406
|
readonly eventCounts: EventCounts;
|
|
26407
|
+
/** The read-only **`performance.interactionCount`** property represents the number of real-user interactions that have occurred on the page since it was loaded. */
|
|
26261
26408
|
readonly interactionCount: number;
|
|
26262
26409
|
/**
|
|
26263
26410
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
@@ -26771,7 +26918,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
26771
26918
|
*/
|
|
26772
26919
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
26773
26920
|
/**
|
|
26774
|
-
* 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
|
|
26921
|
+
* 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.
|
|
26775
26922
|
*
|
|
26776
26923
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
26777
26924
|
*/
|
|
@@ -42910,7 +43057,10 @@ type GLuint64 = number;
|
|
|
42910
43057
|
type GPUFlagsConstant = number;
|
|
42911
43058
|
type GPUIntegerCoordinate = number;
|
|
42912
43059
|
type GPUIntegerCoordinateOut = number;
|
|
43060
|
+
type GPUMapModeFlags = number;
|
|
42913
43061
|
type GPUSize32Out = number;
|
|
43062
|
+
type GPUSize64 = number;
|
|
43063
|
+
type GPUSize64Out = number;
|
|
42914
43064
|
type GPUTextureUsageFlags = number;
|
|
42915
43065
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
42916
43066
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43015,6 +43165,8 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43015
43165
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43016
43166
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43017
43167
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43168
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43169
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43018
43170
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43019
43171
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43020
43172
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|