@types/web 0.0.315 → 0.0.316

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,88 @@ 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 **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14753
+ * Available only in secure contexts.
14754
+ *
14755
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14756
+ */
14757
+ interface GPUCommandBuffer extends GPUObjectBase {
14758
+ }
14759
+
14760
+ declare var GPUCommandBuffer: {
14761
+ prototype: GPUCommandBuffer;
14762
+ new(): GPUCommandBuffer;
14763
+ };
14764
+
14765
+ /**
14766
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14767
+ * Available only in secure contexts.
14768
+ *
14769
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14770
+ */
14771
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14772
+ }
14773
+
14774
+ declare var GPUComputePipeline: {
14775
+ prototype: GPUComputePipeline;
14776
+ new(): GPUComputePipeline;
14777
+ };
14778
+
14779
+ /**
14780
+ * 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.
14781
+ * Available only in secure contexts.
14782
+ *
14783
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14784
+ */
14785
+ interface GPUDeviceLostInfo {
14786
+ /**
14787
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14788
+ *
14789
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14790
+ */
14791
+ readonly message: string;
14792
+ /**
14793
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14794
+ *
14795
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14796
+ */
14797
+ readonly reason: GPUDeviceLostReason;
14798
+ }
14799
+
14800
+ declare var GPUDeviceLostInfo: {
14801
+ prototype: GPUDeviceLostInfo;
14802
+ new(): GPUDeviceLostInfo;
14803
+ };
14804
+
14703
14805
  /**
14704
14806
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14705
14807
  * Available only in secure contexts.
@@ -14720,6 +14822,58 @@ declare var GPUError: {
14720
14822
  new(): GPUError;
14721
14823
  };
14722
14824
 
14825
+ /**
14826
+ * 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.
14827
+ * Available only in secure contexts.
14828
+ *
14829
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14830
+ */
14831
+ interface GPUExternalTexture extends GPUObjectBase {
14832
+ }
14833
+
14834
+ declare var GPUExternalTexture: {
14835
+ prototype: GPUExternalTexture;
14836
+ new(): GPUExternalTexture;
14837
+ };
14838
+
14839
+ /**
14840
+ * 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.
14841
+ * Available only in secure contexts.
14842
+ *
14843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14844
+ */
14845
+ interface GPUInternalError extends GPUError {
14846
+ }
14847
+
14848
+ declare var GPUInternalError: {
14849
+ prototype: GPUInternalError;
14850
+ new(message: string): GPUInternalError;
14851
+ };
14852
+
14853
+ interface GPUObjectBase {
14854
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14855
+ label: string;
14856
+ }
14857
+
14858
+ /**
14859
+ * 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.
14860
+ * Available only in secure contexts.
14861
+ *
14862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14863
+ */
14864
+ interface GPUOutOfMemoryError extends GPUError {
14865
+ }
14866
+
14867
+ declare var GPUOutOfMemoryError: {
14868
+ prototype: GPUOutOfMemoryError;
14869
+ new(message: string): GPUOutOfMemoryError;
14870
+ };
14871
+
14872
+ interface GPUPipelineBase {
14873
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
14874
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
14875
+ }
14876
+
14723
14877
  /**
14724
14878
  * 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
14879
  * Available only in secure contexts.
@@ -14740,6 +14894,275 @@ declare var GPUPipelineError: {
14740
14894
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14741
14895
  };
14742
14896
 
14897
+ /**
14898
+ * 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.
14899
+ * Available only in secure contexts.
14900
+ *
14901
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
14902
+ */
14903
+ interface GPUPipelineLayout extends GPUObjectBase {
14904
+ }
14905
+
14906
+ declare var GPUPipelineLayout: {
14907
+ prototype: GPUPipelineLayout;
14908
+ new(): GPUPipelineLayout;
14909
+ };
14910
+
14911
+ /**
14912
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
14913
+ * Available only in secure contexts.
14914
+ *
14915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
14916
+ */
14917
+ interface GPURenderBundle extends GPUObjectBase {
14918
+ }
14919
+
14920
+ declare var GPURenderBundle: {
14921
+ prototype: GPURenderBundle;
14922
+ new(): GPURenderBundle;
14923
+ };
14924
+
14925
+ /**
14926
+ * 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.
14927
+ * Available only in secure contexts.
14928
+ *
14929
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
14930
+ */
14931
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
14932
+ }
14933
+
14934
+ declare var GPURenderPipeline: {
14935
+ prototype: GPURenderPipeline;
14936
+ new(): GPURenderPipeline;
14937
+ };
14938
+
14939
+ /**
14940
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
14941
+ * Available only in secure contexts.
14942
+ *
14943
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
14944
+ */
14945
+ interface GPUSampler extends GPUObjectBase {
14946
+ }
14947
+
14948
+ declare var GPUSampler: {
14949
+ prototype: GPUSampler;
14950
+ new(): GPUSampler;
14951
+ };
14952
+
14953
+ /**
14954
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
14955
+ * Available only in secure contexts.
14956
+ *
14957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
14958
+ */
14959
+ interface GPUSupportedFeatures {
14960
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
14961
+ }
14962
+
14963
+ declare var GPUSupportedFeatures: {
14964
+ prototype: GPUSupportedFeatures;
14965
+ new(): GPUSupportedFeatures;
14966
+ };
14967
+
14968
+ /**
14969
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
14970
+ * Available only in secure contexts.
14971
+ *
14972
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
14973
+ */
14974
+ interface GPUSupportedLimits {
14975
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14976
+ readonly maxBindGroups: number;
14977
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14978
+ readonly maxBindGroupsPlusVertexBuffers: number;
14979
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14980
+ readonly maxBindingsPerBindGroup: number;
14981
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14982
+ readonly maxBufferSize: number;
14983
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14984
+ readonly maxColorAttachmentBytesPerSample: number;
14985
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14986
+ readonly maxColorAttachments: number;
14987
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14988
+ readonly maxComputeInvocationsPerWorkgroup: number;
14989
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14990
+ readonly maxComputeWorkgroupSizeX: number;
14991
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14992
+ readonly maxComputeWorkgroupSizeY: number;
14993
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14994
+ readonly maxComputeWorkgroupSizeZ: number;
14995
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14996
+ readonly maxComputeWorkgroupStorageSize: number;
14997
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14998
+ readonly maxComputeWorkgroupsPerDimension: number;
14999
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15000
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
15001
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15002
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
15003
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15004
+ readonly maxInterStageShaderVariables: number;
15005
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15006
+ readonly maxSampledTexturesPerShaderStage: number;
15007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15008
+ readonly maxSamplersPerShaderStage: number;
15009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15010
+ readonly maxStorageBufferBindingSize: number;
15011
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15012
+ readonly maxStorageBuffersPerShaderStage: number;
15013
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15014
+ readonly maxStorageTexturesPerShaderStage: number;
15015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15016
+ readonly maxTextureArrayLayers: number;
15017
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15018
+ readonly maxTextureDimension1D: number;
15019
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15020
+ readonly maxTextureDimension2D: number;
15021
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15022
+ readonly maxTextureDimension3D: number;
15023
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15024
+ readonly maxUniformBufferBindingSize: number;
15025
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15026
+ readonly maxUniformBuffersPerShaderStage: number;
15027
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15028
+ readonly maxVertexAttributes: number;
15029
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15030
+ readonly maxVertexBufferArrayStride: number;
15031
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15032
+ readonly maxVertexBuffers: number;
15033
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15034
+ readonly minStorageBufferOffsetAlignment: number;
15035
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15036
+ readonly minUniformBufferOffsetAlignment: number;
15037
+ }
15038
+
15039
+ declare var GPUSupportedLimits: {
15040
+ prototype: GPUSupportedLimits;
15041
+ new(): GPUSupportedLimits;
15042
+ };
15043
+
15044
+ /**
15045
+ * 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.
15046
+ * Available only in secure contexts.
15047
+ *
15048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15049
+ */
15050
+ interface GPUTexture extends GPUObjectBase {
15051
+ /**
15052
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15053
+ *
15054
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15055
+ */
15056
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15057
+ /**
15058
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15059
+ *
15060
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15061
+ */
15062
+ readonly dimension: GPUTextureDimension;
15063
+ /**
15064
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15065
+ *
15066
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15067
+ */
15068
+ readonly format: GPUTextureFormat;
15069
+ /**
15070
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15071
+ *
15072
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15073
+ */
15074
+ readonly height: GPUIntegerCoordinateOut;
15075
+ /**
15076
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15077
+ *
15078
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15079
+ */
15080
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15081
+ /**
15082
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15083
+ *
15084
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15085
+ */
15086
+ readonly sampleCount: GPUSize32Out;
15087
+ /**
15088
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15089
+ *
15090
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15091
+ */
15092
+ readonly usage: GPUFlagsConstant;
15093
+ /**
15094
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15095
+ *
15096
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15097
+ */
15098
+ readonly width: GPUIntegerCoordinateOut;
15099
+ /**
15100
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15101
+ *
15102
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15103
+ */
15104
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15105
+ /**
15106
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15107
+ *
15108
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15109
+ */
15110
+ destroy(): void;
15111
+ }
15112
+
15113
+ declare var GPUTexture: {
15114
+ prototype: GPUTexture;
15115
+ new(): GPUTexture;
15116
+ };
15117
+
15118
+ /**
15119
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15120
+ * Available only in secure contexts.
15121
+ *
15122
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15123
+ */
15124
+ interface GPUTextureView extends GPUObjectBase {
15125
+ }
15126
+
15127
+ declare var GPUTextureView: {
15128
+ prototype: GPUTextureView;
15129
+ new(): GPUTextureView;
15130
+ };
15131
+
15132
+ /**
15133
+ * 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.
15134
+ * Available only in secure contexts.
15135
+ *
15136
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15137
+ */
15138
+ interface GPUUncapturedErrorEvent extends Event {
15139
+ /**
15140
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15141
+ *
15142
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15143
+ */
15144
+ readonly error: GPUError;
15145
+ }
15146
+
15147
+ declare var GPUUncapturedErrorEvent: {
15148
+ prototype: GPUUncapturedErrorEvent;
15149
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15150
+ };
15151
+
15152
+ /**
15153
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15154
+ * Available only in secure contexts.
15155
+ *
15156
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15157
+ */
15158
+ interface GPUValidationError extends GPUError {
15159
+ }
15160
+
15161
+ declare var GPUValidationError: {
15162
+ prototype: GPUValidationError;
15163
+ new(message: string): GPUValidationError;
15164
+ };
15165
+
14743
15166
  /**
14744
15167
  * 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
15168
  *
@@ -36820,6 +37243,21 @@ interface WEBGL_multi_draw {
36820
37243
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36821
37244
  }
36822
37245
 
37246
+ /**
37247
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37248
+ * Available only in secure contexts.
37249
+ *
37250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37251
+ */
37252
+ interface WGSLLanguageFeatures {
37253
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37254
+ }
37255
+
37256
+ declare var WGSLLanguageFeatures: {
37257
+ prototype: WGSLLanguageFeatures;
37258
+ new(): WGSLLanguageFeatures;
37259
+ };
37260
+
36823
37261
  /**
36824
37262
  * 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
37263
  * Available only in secure contexts.
@@ -42469,6 +42907,11 @@ type GLsizei = number;
42469
42907
  type GLsizeiptr = number;
42470
42908
  type GLuint = number;
42471
42909
  type GLuint64 = number;
42910
+ type GPUFlagsConstant = number;
42911
+ type GPUIntegerCoordinate = number;
42912
+ type GPUIntegerCoordinateOut = number;
42913
+ type GPUSize32Out = number;
42914
+ type GPUTextureUsageFlags = number;
42472
42915
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42473
42916
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42474
42917
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42572,7 +43015,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42572
43015
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42573
43016
  type FontFaceSetLoadStatus = "loaded" | "loading";
42574
43017
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43018
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42575
43019
  type GPUPipelineErrorReason = "internal" | "validation";
43020
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43021
+ type GPUTextureDimension = "1d" | "2d" | "3d";
43022
+ 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";
43023
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42576
43024
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42577
43025
  type GamepadHapticsResult = "complete" | "preempted";
42578
43026
  type GamepadMappingType = "" | "standard" | "xr-standard";
@@ -142,6 +142,9 @@ interface FormData {
142
142
  values(): FormDataIterator<FormDataEntryValue>;
143
143
  }
144
144
 
145
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
146
+ }
147
+
145
148
  interface HTMLAllCollection {
146
149
  [Symbol.iterator](): ArrayIterator<Element>;
147
150
  }
@@ -447,6 +450,9 @@ interface WEBGL_multi_draw {
447
450
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
448
451
  }
449
452
 
453
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
454
+ }
455
+
450
456
  interface WebGL2RenderingContextBase {
451
457
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
452
458
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;