@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/index.d.ts CHANGED
@@ -808,10 +808,29 @@ interface FullscreenOptions {
808
808
  navigationUI?: FullscreenNavigationUI;
809
809
  }
810
810
 
811
+ interface GPUObjectDescriptorBase {
812
+ label?: string;
813
+ }
814
+
811
815
  interface GPUPipelineErrorInit {
812
816
  reason: GPUPipelineErrorReason;
813
817
  }
814
818
 
819
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
820
+ arrayLayerCount?: GPUIntegerCoordinate;
821
+ aspect?: GPUTextureAspect;
822
+ baseArrayLayer?: GPUIntegerCoordinate;
823
+ baseMipLevel?: GPUIntegerCoordinate;
824
+ dimension?: GPUTextureViewDimension;
825
+ format?: GPUTextureFormat;
826
+ mipLevelCount?: GPUIntegerCoordinate;
827
+ usage?: GPUTextureUsageFlags;
828
+ }
829
+
830
+ interface GPUUncapturedErrorEventInit extends EventInit {
831
+ error: GPUError;
832
+ }
833
+
815
834
  interface GainOptions extends AudioNodeOptions {
816
835
  gain?: number;
817
836
  }
@@ -6359,7 +6378,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6359
6378
  */
6360
6379
  backfaceVisibility: string;
6361
6380
  /**
6362
- * 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.
6381
+ * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
6363
6382
  *
6364
6383
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
6365
6384
  */
@@ -12561,6 +12580,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12561
12580
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
12562
12581
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
12563
12582
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
12583
+ createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
12564
12584
  createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
12565
12585
  createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
12566
12586
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
@@ -14703,6 +14723,214 @@ declare var FragmentDirective: {
14703
14723
  new(): FragmentDirective;
14704
14724
  };
14705
14725
 
14726
+ /**
14727
+ * 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.
14728
+ * Available only in secure contexts.
14729
+ *
14730
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
14731
+ */
14732
+ interface GPUBindGroup extends GPUObjectBase {
14733
+ }
14734
+
14735
+ declare var GPUBindGroup: {
14736
+ prototype: GPUBindGroup;
14737
+ new(): GPUBindGroup;
14738
+ };
14739
+
14740
+ /**
14741
+ * 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.
14742
+ * Available only in secure contexts.
14743
+ *
14744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
14745
+ */
14746
+ interface GPUBindGroupLayout extends GPUObjectBase {
14747
+ }
14748
+
14749
+ declare var GPUBindGroupLayout: {
14750
+ prototype: GPUBindGroupLayout;
14751
+ new(): GPUBindGroupLayout;
14752
+ };
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
+
14810
+ /**
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.
14812
+ * Available only in secure contexts.
14813
+ *
14814
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14815
+ */
14816
+ interface GPUCommandBuffer extends GPUObjectBase {
14817
+ }
14818
+
14819
+ declare var GPUCommandBuffer: {
14820
+ prototype: GPUCommandBuffer;
14821
+ new(): GPUCommandBuffer;
14822
+ };
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
+
14894
+ /**
14895
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14896
+ * Available only in secure contexts.
14897
+ *
14898
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14899
+ */
14900
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14901
+ }
14902
+
14903
+ declare var GPUComputePipeline: {
14904
+ prototype: GPUComputePipeline;
14905
+ new(): GPUComputePipeline;
14906
+ };
14907
+
14908
+ /**
14909
+ * 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.
14910
+ * Available only in secure contexts.
14911
+ *
14912
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14913
+ */
14914
+ interface GPUDeviceLostInfo {
14915
+ /**
14916
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14917
+ *
14918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14919
+ */
14920
+ readonly message: string;
14921
+ /**
14922
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14923
+ *
14924
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14925
+ */
14926
+ readonly reason: GPUDeviceLostReason;
14927
+ }
14928
+
14929
+ declare var GPUDeviceLostInfo: {
14930
+ prototype: GPUDeviceLostInfo;
14931
+ new(): GPUDeviceLostInfo;
14932
+ };
14933
+
14706
14934
  /**
14707
14935
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14708
14936
  * Available only in secure contexts.
@@ -14723,6 +14951,58 @@ declare var GPUError: {
14723
14951
  new(): GPUError;
14724
14952
  };
14725
14953
 
14954
+ /**
14955
+ * 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.
14956
+ * Available only in secure contexts.
14957
+ *
14958
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14959
+ */
14960
+ interface GPUExternalTexture extends GPUObjectBase {
14961
+ }
14962
+
14963
+ declare var GPUExternalTexture: {
14964
+ prototype: GPUExternalTexture;
14965
+ new(): GPUExternalTexture;
14966
+ };
14967
+
14968
+ /**
14969
+ * 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.
14970
+ * Available only in secure contexts.
14971
+ *
14972
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14973
+ */
14974
+ interface GPUInternalError extends GPUError {
14975
+ }
14976
+
14977
+ declare var GPUInternalError: {
14978
+ prototype: GPUInternalError;
14979
+ new(message: string): GPUInternalError;
14980
+ };
14981
+
14982
+ interface GPUObjectBase {
14983
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14984
+ label: string;
14985
+ }
14986
+
14987
+ /**
14988
+ * 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.
14989
+ * Available only in secure contexts.
14990
+ *
14991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14992
+ */
14993
+ interface GPUOutOfMemoryError extends GPUError {
14994
+ }
14995
+
14996
+ declare var GPUOutOfMemoryError: {
14997
+ prototype: GPUOutOfMemoryError;
14998
+ new(message: string): GPUOutOfMemoryError;
14999
+ };
15000
+
15001
+ interface GPUPipelineBase {
15002
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
15003
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
15004
+ }
15005
+
14726
15006
  /**
14727
15007
  * 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.
14728
15008
  * Available only in secure contexts.
@@ -14743,6 +15023,295 @@ declare var GPUPipelineError: {
14743
15023
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14744
15024
  };
14745
15025
 
15026
+ /**
15027
+ * 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.
15028
+ * Available only in secure contexts.
15029
+ *
15030
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
15031
+ */
15032
+ interface GPUPipelineLayout extends GPUObjectBase {
15033
+ }
15034
+
15035
+ declare var GPUPipelineLayout: {
15036
+ prototype: GPUPipelineLayout;
15037
+ new(): GPUPipelineLayout;
15038
+ };
15039
+
15040
+ /**
15041
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
15042
+ * Available only in secure contexts.
15043
+ *
15044
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
15045
+ */
15046
+ interface GPURenderBundle extends GPUObjectBase {
15047
+ }
15048
+
15049
+ declare var GPURenderBundle: {
15050
+ prototype: GPURenderBundle;
15051
+ new(): GPURenderBundle;
15052
+ };
15053
+
15054
+ /**
15055
+ * 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.
15056
+ * Available only in secure contexts.
15057
+ *
15058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
15059
+ */
15060
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
15061
+ }
15062
+
15063
+ declare var GPURenderPipeline: {
15064
+ prototype: GPURenderPipeline;
15065
+ new(): GPURenderPipeline;
15066
+ };
15067
+
15068
+ /**
15069
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
15070
+ * Available only in secure contexts.
15071
+ *
15072
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
15073
+ */
15074
+ interface GPUSampler extends GPUObjectBase {
15075
+ }
15076
+
15077
+ declare var GPUSampler: {
15078
+ prototype: GPUSampler;
15079
+ new(): GPUSampler;
15080
+ };
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
+
15102
+ /**
15103
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
15104
+ * Available only in secure contexts.
15105
+ *
15106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
15107
+ */
15108
+ interface GPUSupportedFeatures {
15109
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
15110
+ }
15111
+
15112
+ declare var GPUSupportedFeatures: {
15113
+ prototype: GPUSupportedFeatures;
15114
+ new(): GPUSupportedFeatures;
15115
+ };
15116
+
15117
+ /**
15118
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
15119
+ * Available only in secure contexts.
15120
+ *
15121
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
15122
+ */
15123
+ interface GPUSupportedLimits {
15124
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15125
+ readonly maxBindGroups: number;
15126
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15127
+ readonly maxBindGroupsPlusVertexBuffers: number;
15128
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15129
+ readonly maxBindingsPerBindGroup: number;
15130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15131
+ readonly maxBufferSize: number;
15132
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15133
+ readonly maxColorAttachmentBytesPerSample: number;
15134
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15135
+ readonly maxColorAttachments: number;
15136
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15137
+ readonly maxComputeInvocationsPerWorkgroup: number;
15138
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15139
+ readonly maxComputeWorkgroupSizeX: number;
15140
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15141
+ readonly maxComputeWorkgroupSizeY: number;
15142
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15143
+ readonly maxComputeWorkgroupSizeZ: number;
15144
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15145
+ readonly maxComputeWorkgroupStorageSize: number;
15146
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15147
+ readonly maxComputeWorkgroupsPerDimension: number;
15148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15149
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
15150
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15151
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
15152
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15153
+ readonly maxInterStageShaderVariables: number;
15154
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15155
+ readonly maxSampledTexturesPerShaderStage: number;
15156
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15157
+ readonly maxSamplersPerShaderStage: number;
15158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15159
+ readonly maxStorageBufferBindingSize: number;
15160
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15161
+ readonly maxStorageBuffersPerShaderStage: number;
15162
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15163
+ readonly maxStorageTexturesPerShaderStage: number;
15164
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15165
+ readonly maxTextureArrayLayers: number;
15166
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15167
+ readonly maxTextureDimension1D: number;
15168
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15169
+ readonly maxTextureDimension2D: number;
15170
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15171
+ readonly maxTextureDimension3D: number;
15172
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15173
+ readonly maxUniformBufferBindingSize: number;
15174
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15175
+ readonly maxUniformBuffersPerShaderStage: number;
15176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15177
+ readonly maxVertexAttributes: number;
15178
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15179
+ readonly maxVertexBufferArrayStride: number;
15180
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15181
+ readonly maxVertexBuffers: number;
15182
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15183
+ readonly minStorageBufferOffsetAlignment: number;
15184
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15185
+ readonly minUniformBufferOffsetAlignment: number;
15186
+ }
15187
+
15188
+ declare var GPUSupportedLimits: {
15189
+ prototype: GPUSupportedLimits;
15190
+ new(): GPUSupportedLimits;
15191
+ };
15192
+
15193
+ /**
15194
+ * 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.
15195
+ * Available only in secure contexts.
15196
+ *
15197
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15198
+ */
15199
+ interface GPUTexture extends GPUObjectBase {
15200
+ /**
15201
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15202
+ *
15203
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15204
+ */
15205
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15206
+ /**
15207
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15208
+ *
15209
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15210
+ */
15211
+ readonly dimension: GPUTextureDimension;
15212
+ /**
15213
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15214
+ *
15215
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15216
+ */
15217
+ readonly format: GPUTextureFormat;
15218
+ /**
15219
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15220
+ *
15221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15222
+ */
15223
+ readonly height: GPUIntegerCoordinateOut;
15224
+ /**
15225
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15226
+ *
15227
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15228
+ */
15229
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15230
+ /**
15231
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15232
+ *
15233
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15234
+ */
15235
+ readonly sampleCount: GPUSize32Out;
15236
+ /**
15237
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15238
+ *
15239
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15240
+ */
15241
+ readonly usage: GPUFlagsConstant;
15242
+ /**
15243
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15244
+ *
15245
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15246
+ */
15247
+ readonly width: GPUIntegerCoordinateOut;
15248
+ /**
15249
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15250
+ *
15251
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15252
+ */
15253
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15254
+ /**
15255
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15256
+ *
15257
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15258
+ */
15259
+ destroy(): void;
15260
+ }
15261
+
15262
+ declare var GPUTexture: {
15263
+ prototype: GPUTexture;
15264
+ new(): GPUTexture;
15265
+ };
15266
+
15267
+ /**
15268
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15269
+ * Available only in secure contexts.
15270
+ *
15271
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15272
+ */
15273
+ interface GPUTextureView extends GPUObjectBase {
15274
+ }
15275
+
15276
+ declare var GPUTextureView: {
15277
+ prototype: GPUTextureView;
15278
+ new(): GPUTextureView;
15279
+ };
15280
+
15281
+ /**
15282
+ * 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.
15283
+ * Available only in secure contexts.
15284
+ *
15285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15286
+ */
15287
+ interface GPUUncapturedErrorEvent extends Event {
15288
+ /**
15289
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15290
+ *
15291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15292
+ */
15293
+ readonly error: GPUError;
15294
+ }
15295
+
15296
+ declare var GPUUncapturedErrorEvent: {
15297
+ prototype: GPUUncapturedErrorEvent;
15298
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15299
+ };
15300
+
15301
+ /**
15302
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15303
+ * Available only in secure contexts.
15304
+ *
15305
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15306
+ */
15307
+ interface GPUValidationError extends GPUError {
15308
+ }
15309
+
15310
+ declare var GPUValidationError: {
15311
+ prototype: GPUValidationError;
15312
+ new(message: string): GPUValidationError;
15313
+ };
15314
+
14746
15315
  /**
14747
15316
  * 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.
14748
15317
  *
@@ -26351,7 +26920,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
26351
26920
  */
26352
26921
  readonly redirectStart: DOMHighResTimeStamp;
26353
26922
  /**
26354
- * 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.
26923
+ * 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.
26355
26924
  *
26356
26925
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
26357
26926
  */
@@ -36823,6 +37392,21 @@ interface WEBGL_multi_draw {
36823
37392
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36824
37393
  }
36825
37394
 
37395
+ /**
37396
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37397
+ * Available only in secure contexts.
37398
+ *
37399
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37400
+ */
37401
+ interface WGSLLanguageFeatures {
37402
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37403
+ }
37404
+
37405
+ declare var WGSLLanguageFeatures: {
37406
+ prototype: WGSLLanguageFeatures;
37407
+ new(): WGSLLanguageFeatures;
37408
+ };
37409
+
36826
37410
  /**
36827
37411
  * 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.
36828
37412
  * Available only in secure contexts.
@@ -42472,6 +43056,14 @@ type GLsizei = number;
42472
43056
  type GLsizeiptr = number;
42473
43057
  type GLuint = number;
42474
43058
  type GLuint64 = number;
43059
+ type GPUFlagsConstant = number;
43060
+ type GPUIntegerCoordinate = number;
43061
+ type GPUIntegerCoordinateOut = number;
43062
+ type GPUMapModeFlags = number;
43063
+ type GPUSize32Out = number;
43064
+ type GPUSize64 = number;
43065
+ type GPUSize64Out = number;
43066
+ type GPUTextureUsageFlags = number;
42475
43067
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42476
43068
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42477
43069
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42575,7 +43167,14 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42575
43167
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42576
43168
  type FontFaceSetLoadStatus = "loaded" | "loading";
42577
43169
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43170
+ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
43171
+ type GPUCompilationMessageType = "error" | "info" | "warning";
43172
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42578
43173
  type GPUPipelineErrorReason = "internal" | "validation";
43174
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43175
+ type GPUTextureDimension = "1d" | "2d" | "3d";
43176
+ 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";
43177
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42579
43178
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42580
43179
  type GamepadHapticsResult = "complete" | "preempted";
42581
43180
  type GamepadMappingType = "" | "standard" | "xr-standard";
@@ -42859,6 +43458,9 @@ interface FormData {
42859
43458
  values(): FormDataIterator<FormDataEntryValue>;
42860
43459
  }
42861
43460
 
43461
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
43462
+ }
43463
+
42862
43464
  interface HTMLAllCollection {
42863
43465
  [Symbol.iterator](): ArrayIterator<Element>;
42864
43466
  }
@@ -43164,6 +43766,9 @@ interface WEBGL_multi_draw {
43164
43766
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
43165
43767
  }
43166
43768
 
43769
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
43770
+ }
43771
+
43167
43772
  interface WebGL2RenderingContextBase {
43168
43773
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
43169
43774
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;