@types/web 0.0.315 → 0.0.317

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/ts5.9/index.d.ts CHANGED
@@ -805,10 +805,29 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUObjectDescriptorBase {
809
+ label?: string;
810
+ }
811
+
808
812
  interface GPUPipelineErrorInit {
809
813
  reason: GPUPipelineErrorReason;
810
814
  }
811
815
 
816
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
817
+ arrayLayerCount?: GPUIntegerCoordinate;
818
+ aspect?: GPUTextureAspect;
819
+ baseArrayLayer?: GPUIntegerCoordinate;
820
+ baseMipLevel?: GPUIntegerCoordinate;
821
+ dimension?: GPUTextureViewDimension;
822
+ format?: GPUTextureFormat;
823
+ mipLevelCount?: GPUIntegerCoordinate;
824
+ usage?: GPUTextureUsageFlags;
825
+ }
826
+
827
+ interface GPUUncapturedErrorEventInit extends EventInit {
828
+ error: GPUError;
829
+ }
830
+
812
831
  interface GainOptions extends AudioNodeOptions {
813
832
  gain?: number;
814
833
  }
@@ -6356,7 +6375,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6356
6375
  */
6357
6376
  backfaceVisibility: string;
6358
6377
  /**
6359
- * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values.
6378
+ * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
6360
6379
  *
6361
6380
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
6362
6381
  */
@@ -12558,6 +12577,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12558
12577
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
12559
12578
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
12560
12579
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
12580
+ createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
12561
12581
  createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
12562
12582
  createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
12563
12583
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
@@ -14700,6 +14720,214 @@ declare var FragmentDirective: {
14700
14720
  new(): FragmentDirective;
14701
14721
  };
14702
14722
 
14723
+ /**
14724
+ * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
14725
+ * Available only in secure contexts.
14726
+ *
14727
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
14728
+ */
14729
+ interface GPUBindGroup extends GPUObjectBase {
14730
+ }
14731
+
14732
+ declare var GPUBindGroup: {
14733
+ prototype: GPUBindGroup;
14734
+ new(): GPUBindGroup;
14735
+ };
14736
+
14737
+ /**
14738
+ * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
14739
+ * Available only in secure contexts.
14740
+ *
14741
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
14742
+ */
14743
+ interface GPUBindGroupLayout extends GPUObjectBase {
14744
+ }
14745
+
14746
+ declare var GPUBindGroupLayout: {
14747
+ prototype: GPUBindGroupLayout;
14748
+ new(): GPUBindGroupLayout;
14749
+ };
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
+
14807
+ /**
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.
14809
+ * Available only in secure contexts.
14810
+ *
14811
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14812
+ */
14813
+ interface GPUCommandBuffer extends GPUObjectBase {
14814
+ }
14815
+
14816
+ declare var GPUCommandBuffer: {
14817
+ prototype: GPUCommandBuffer;
14818
+ new(): GPUCommandBuffer;
14819
+ };
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
+
14891
+ /**
14892
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14893
+ * Available only in secure contexts.
14894
+ *
14895
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14896
+ */
14897
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14898
+ }
14899
+
14900
+ declare var GPUComputePipeline: {
14901
+ prototype: GPUComputePipeline;
14902
+ new(): GPUComputePipeline;
14903
+ };
14904
+
14905
+ /**
14906
+ * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
14907
+ * Available only in secure contexts.
14908
+ *
14909
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14910
+ */
14911
+ interface GPUDeviceLostInfo {
14912
+ /**
14913
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14914
+ *
14915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14916
+ */
14917
+ readonly message: string;
14918
+ /**
14919
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14920
+ *
14921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14922
+ */
14923
+ readonly reason: GPUDeviceLostReason;
14924
+ }
14925
+
14926
+ declare var GPUDeviceLostInfo: {
14927
+ prototype: GPUDeviceLostInfo;
14928
+ new(): GPUDeviceLostInfo;
14929
+ };
14930
+
14703
14931
  /**
14704
14932
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14705
14933
  * Available only in secure contexts.
@@ -14720,6 +14948,58 @@ declare var GPUError: {
14720
14948
  new(): GPUError;
14721
14949
  };
14722
14950
 
14951
+ /**
14952
+ * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
14953
+ * Available only in secure contexts.
14954
+ *
14955
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14956
+ */
14957
+ interface GPUExternalTexture extends GPUObjectBase {
14958
+ }
14959
+
14960
+ declare var GPUExternalTexture: {
14961
+ prototype: GPUExternalTexture;
14962
+ new(): GPUExternalTexture;
14963
+ };
14964
+
14965
+ /**
14966
+ * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
14967
+ * Available only in secure contexts.
14968
+ *
14969
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14970
+ */
14971
+ interface GPUInternalError extends GPUError {
14972
+ }
14973
+
14974
+ declare var GPUInternalError: {
14975
+ prototype: GPUInternalError;
14976
+ new(message: string): GPUInternalError;
14977
+ };
14978
+
14979
+ interface GPUObjectBase {
14980
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14981
+ label: string;
14982
+ }
14983
+
14984
+ /**
14985
+ * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
14986
+ * Available only in secure contexts.
14987
+ *
14988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14989
+ */
14990
+ interface GPUOutOfMemoryError extends GPUError {
14991
+ }
14992
+
14993
+ declare var GPUOutOfMemoryError: {
14994
+ prototype: GPUOutOfMemoryError;
14995
+ new(message: string): GPUOutOfMemoryError;
14996
+ };
14997
+
14998
+ interface GPUPipelineBase {
14999
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
15000
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
15001
+ }
15002
+
14723
15003
  /**
14724
15004
  * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
14725
15005
  * Available only in secure contexts.
@@ -14740,6 +15020,295 @@ declare var GPUPipelineError: {
14740
15020
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14741
15021
  };
14742
15022
 
15023
+ /**
15024
+ * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
15025
+ * Available only in secure contexts.
15026
+ *
15027
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
15028
+ */
15029
+ interface GPUPipelineLayout extends GPUObjectBase {
15030
+ }
15031
+
15032
+ declare var GPUPipelineLayout: {
15033
+ prototype: GPUPipelineLayout;
15034
+ new(): GPUPipelineLayout;
15035
+ };
15036
+
15037
+ /**
15038
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15039
+ * Available only in secure contexts.
15040
+ *
15041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
15042
+ */
15043
+ interface GPURenderBundle extends GPUObjectBase {
15044
+ }
15045
+
15046
+ declare var GPURenderBundle: {
15047
+ prototype: GPURenderBundle;
15048
+ new(): GPURenderBundle;
15049
+ };
15050
+
15051
+ /**
15052
+ * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
15053
+ * Available only in secure contexts.
15054
+ *
15055
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
15056
+ */
15057
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
15058
+ }
15059
+
15060
+ declare var GPURenderPipeline: {
15061
+ prototype: GPURenderPipeline;
15062
+ new(): GPURenderPipeline;
15063
+ };
15064
+
15065
+ /**
15066
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
15067
+ * Available only in secure contexts.
15068
+ *
15069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
15070
+ */
15071
+ interface GPUSampler extends GPUObjectBase {
15072
+ }
15073
+
15074
+ declare var GPUSampler: {
15075
+ prototype: GPUSampler;
15076
+ new(): GPUSampler;
15077
+ };
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
+
15099
+ /**
15100
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
15101
+ * Available only in secure contexts.
15102
+ *
15103
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
15104
+ */
15105
+ interface GPUSupportedFeatures {
15106
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
15107
+ }
15108
+
15109
+ declare var GPUSupportedFeatures: {
15110
+ prototype: GPUSupportedFeatures;
15111
+ new(): GPUSupportedFeatures;
15112
+ };
15113
+
15114
+ /**
15115
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
15116
+ * Available only in secure contexts.
15117
+ *
15118
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
15119
+ */
15120
+ interface GPUSupportedLimits {
15121
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15122
+ readonly maxBindGroups: number;
15123
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15124
+ readonly maxBindGroupsPlusVertexBuffers: number;
15125
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15126
+ readonly maxBindingsPerBindGroup: number;
15127
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15128
+ readonly maxBufferSize: number;
15129
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15130
+ readonly maxColorAttachmentBytesPerSample: number;
15131
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15132
+ readonly maxColorAttachments: number;
15133
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15134
+ readonly maxComputeInvocationsPerWorkgroup: number;
15135
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15136
+ readonly maxComputeWorkgroupSizeX: number;
15137
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15138
+ readonly maxComputeWorkgroupSizeY: number;
15139
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15140
+ readonly maxComputeWorkgroupSizeZ: number;
15141
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15142
+ readonly maxComputeWorkgroupStorageSize: number;
15143
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15144
+ readonly maxComputeWorkgroupsPerDimension: number;
15145
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15146
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
15147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15148
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
15149
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15150
+ readonly maxInterStageShaderVariables: number;
15151
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15152
+ readonly maxSampledTexturesPerShaderStage: number;
15153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15154
+ readonly maxSamplersPerShaderStage: number;
15155
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15156
+ readonly maxStorageBufferBindingSize: number;
15157
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15158
+ readonly maxStorageBuffersPerShaderStage: number;
15159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15160
+ readonly maxStorageTexturesPerShaderStage: number;
15161
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15162
+ readonly maxTextureArrayLayers: number;
15163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15164
+ readonly maxTextureDimension1D: number;
15165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15166
+ readonly maxTextureDimension2D: number;
15167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15168
+ readonly maxTextureDimension3D: number;
15169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15170
+ readonly maxUniformBufferBindingSize: number;
15171
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15172
+ readonly maxUniformBuffersPerShaderStage: number;
15173
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15174
+ readonly maxVertexAttributes: number;
15175
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15176
+ readonly maxVertexBufferArrayStride: number;
15177
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15178
+ readonly maxVertexBuffers: number;
15179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15180
+ readonly minStorageBufferOffsetAlignment: number;
15181
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15182
+ readonly minUniformBufferOffsetAlignment: number;
15183
+ }
15184
+
15185
+ declare var GPUSupportedLimits: {
15186
+ prototype: GPUSupportedLimits;
15187
+ new(): GPUSupportedLimits;
15188
+ };
15189
+
15190
+ /**
15191
+ * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
15192
+ * Available only in secure contexts.
15193
+ *
15194
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15195
+ */
15196
+ interface GPUTexture extends GPUObjectBase {
15197
+ /**
15198
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15199
+ *
15200
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15201
+ */
15202
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15203
+ /**
15204
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15205
+ *
15206
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15207
+ */
15208
+ readonly dimension: GPUTextureDimension;
15209
+ /**
15210
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15211
+ *
15212
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15213
+ */
15214
+ readonly format: GPUTextureFormat;
15215
+ /**
15216
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15217
+ *
15218
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15219
+ */
15220
+ readonly height: GPUIntegerCoordinateOut;
15221
+ /**
15222
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15223
+ *
15224
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15225
+ */
15226
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15227
+ /**
15228
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15229
+ *
15230
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15231
+ */
15232
+ readonly sampleCount: GPUSize32Out;
15233
+ /**
15234
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15235
+ *
15236
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15237
+ */
15238
+ readonly usage: GPUFlagsConstant;
15239
+ /**
15240
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15241
+ *
15242
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15243
+ */
15244
+ readonly width: GPUIntegerCoordinateOut;
15245
+ /**
15246
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15247
+ *
15248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15249
+ */
15250
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15251
+ /**
15252
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15253
+ *
15254
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15255
+ */
15256
+ destroy(): void;
15257
+ }
15258
+
15259
+ declare var GPUTexture: {
15260
+ prototype: GPUTexture;
15261
+ new(): GPUTexture;
15262
+ };
15263
+
15264
+ /**
15265
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15266
+ * Available only in secure contexts.
15267
+ *
15268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15269
+ */
15270
+ interface GPUTextureView extends GPUObjectBase {
15271
+ }
15272
+
15273
+ declare var GPUTextureView: {
15274
+ prototype: GPUTextureView;
15275
+ new(): GPUTextureView;
15276
+ };
15277
+
15278
+ /**
15279
+ * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
15280
+ * Available only in secure contexts.
15281
+ *
15282
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15283
+ */
15284
+ interface GPUUncapturedErrorEvent extends Event {
15285
+ /**
15286
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15287
+ *
15288
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15289
+ */
15290
+ readonly error: GPUError;
15291
+ }
15292
+
15293
+ declare var GPUUncapturedErrorEvent: {
15294
+ prototype: GPUUncapturedErrorEvent;
15295
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15296
+ };
15297
+
15298
+ /**
15299
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15300
+ * Available only in secure contexts.
15301
+ *
15302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15303
+ */
15304
+ interface GPUValidationError extends GPUError {
15305
+ }
15306
+
15307
+ declare var GPUValidationError: {
15308
+ prototype: GPUValidationError;
15309
+ new(message: string): GPUValidationError;
15310
+ };
15311
+
14743
15312
  /**
14744
15313
  * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
14745
15314
  *
@@ -26348,7 +26917,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
26348
26917
  */
26349
26918
  readonly redirectStart: DOMHighResTimeStamp;
26350
26919
  /**
26351
- * The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
26920
+ * 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.
26352
26921
  *
26353
26922
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
26354
26923
  */
@@ -36820,6 +37389,21 @@ interface WEBGL_multi_draw {
36820
37389
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36821
37390
  }
36822
37391
 
37392
+ /**
37393
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37394
+ * Available only in secure contexts.
37395
+ *
37396
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37397
+ */
37398
+ interface WGSLLanguageFeatures {
37399
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37400
+ }
37401
+
37402
+ declare var WGSLLanguageFeatures: {
37403
+ prototype: WGSLLanguageFeatures;
37404
+ new(): WGSLLanguageFeatures;
37405
+ };
37406
+
36823
37407
  /**
36824
37408
  * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
36825
37409
  * Available only in secure contexts.
@@ -42469,6 +43053,14 @@ type GLsizei = number;
42469
43053
  type GLsizeiptr = number;
42470
43054
  type GLuint = number;
42471
43055
  type GLuint64 = number;
43056
+ type GPUFlagsConstant = number;
43057
+ type GPUIntegerCoordinate = number;
43058
+ type GPUIntegerCoordinateOut = number;
43059
+ type GPUMapModeFlags = number;
43060
+ type GPUSize32Out = number;
43061
+ type GPUSize64 = number;
43062
+ type GPUSize64Out = number;
43063
+ type GPUTextureUsageFlags = number;
42472
43064
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42473
43065
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42474
43066
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42572,7 +43164,14 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42572
43164
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42573
43165
  type FontFaceSetLoadStatus = "loaded" | "loading";
42574
43166
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43167
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43168
+ type GPUCompilationMessageType = "error" | "info" | "warning";
43169
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42575
43170
  type GPUPipelineErrorReason = "internal" | "validation";
43171
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43172
+ type GPUTextureDimension = "1d" | "2d" | "3d";
43173
+ type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
43174
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42576
43175
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42577
43176
  type GamepadHapticsResult = "complete" | "preempted";
42578
43177
  type GamepadMappingType = "" | "standard" | "xr-standard";