@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.5/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
  }
@@ -6349,7 +6368,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6349
6368
  */
6350
6369
  backfaceVisibility: string;
6351
6370
  /**
6352
- * 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.
6371
+ * The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
6353
6372
  *
6354
6373
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
6355
6374
  */
@@ -12550,6 +12569,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12550
12569
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
12551
12570
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
12552
12571
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
12572
+ createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
12553
12573
  createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
12554
12574
  createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
12555
12575
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
@@ -14689,6 +14709,88 @@ declare var FragmentDirective: {
14689
14709
  new(): FragmentDirective;
14690
14710
  };
14691
14711
 
14712
+ /**
14713
+ * 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.
14714
+ * Available only in secure contexts.
14715
+ *
14716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
14717
+ */
14718
+ interface GPUBindGroup extends GPUObjectBase {
14719
+ }
14720
+
14721
+ declare var GPUBindGroup: {
14722
+ prototype: GPUBindGroup;
14723
+ new(): GPUBindGroup;
14724
+ };
14725
+
14726
+ /**
14727
+ * 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.
14728
+ * Available only in secure contexts.
14729
+ *
14730
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
14731
+ */
14732
+ interface GPUBindGroupLayout extends GPUObjectBase {
14733
+ }
14734
+
14735
+ declare var GPUBindGroupLayout: {
14736
+ prototype: GPUBindGroupLayout;
14737
+ new(): GPUBindGroupLayout;
14738
+ };
14739
+
14740
+ /**
14741
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14742
+ * Available only in secure contexts.
14743
+ *
14744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14745
+ */
14746
+ interface GPUCommandBuffer extends GPUObjectBase {
14747
+ }
14748
+
14749
+ declare var GPUCommandBuffer: {
14750
+ prototype: GPUCommandBuffer;
14751
+ new(): GPUCommandBuffer;
14752
+ };
14753
+
14754
+ /**
14755
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14756
+ * Available only in secure contexts.
14757
+ *
14758
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14759
+ */
14760
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14761
+ }
14762
+
14763
+ declare var GPUComputePipeline: {
14764
+ prototype: GPUComputePipeline;
14765
+ new(): GPUComputePipeline;
14766
+ };
14767
+
14768
+ /**
14769
+ * 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.
14770
+ * Available only in secure contexts.
14771
+ *
14772
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14773
+ */
14774
+ interface GPUDeviceLostInfo {
14775
+ /**
14776
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14777
+ *
14778
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14779
+ */
14780
+ readonly message: string;
14781
+ /**
14782
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14783
+ *
14784
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14785
+ */
14786
+ readonly reason: GPUDeviceLostReason;
14787
+ }
14788
+
14789
+ declare var GPUDeviceLostInfo: {
14790
+ prototype: GPUDeviceLostInfo;
14791
+ new(): GPUDeviceLostInfo;
14792
+ };
14793
+
14692
14794
  /**
14693
14795
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14694
14796
  * Available only in secure contexts.
@@ -14709,6 +14811,58 @@ declare var GPUError: {
14709
14811
  new(): GPUError;
14710
14812
  };
14711
14813
 
14814
+ /**
14815
+ * 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.
14816
+ * Available only in secure contexts.
14817
+ *
14818
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14819
+ */
14820
+ interface GPUExternalTexture extends GPUObjectBase {
14821
+ }
14822
+
14823
+ declare var GPUExternalTexture: {
14824
+ prototype: GPUExternalTexture;
14825
+ new(): GPUExternalTexture;
14826
+ };
14827
+
14828
+ /**
14829
+ * 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.
14830
+ * Available only in secure contexts.
14831
+ *
14832
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14833
+ */
14834
+ interface GPUInternalError extends GPUError {
14835
+ }
14836
+
14837
+ declare var GPUInternalError: {
14838
+ prototype: GPUInternalError;
14839
+ new(message: string): GPUInternalError;
14840
+ };
14841
+
14842
+ interface GPUObjectBase {
14843
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14844
+ label: string;
14845
+ }
14846
+
14847
+ /**
14848
+ * 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.
14849
+ * Available only in secure contexts.
14850
+ *
14851
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14852
+ */
14853
+ interface GPUOutOfMemoryError extends GPUError {
14854
+ }
14855
+
14856
+ declare var GPUOutOfMemoryError: {
14857
+ prototype: GPUOutOfMemoryError;
14858
+ new(message: string): GPUOutOfMemoryError;
14859
+ };
14860
+
14861
+ interface GPUPipelineBase {
14862
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
14863
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
14864
+ }
14865
+
14712
14866
  /**
14713
14867
  * 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.
14714
14868
  * Available only in secure contexts.
@@ -14729,6 +14883,275 @@ declare var GPUPipelineError: {
14729
14883
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14730
14884
  };
14731
14885
 
14886
+ /**
14887
+ * 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.
14888
+ * Available only in secure contexts.
14889
+ *
14890
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
14891
+ */
14892
+ interface GPUPipelineLayout extends GPUObjectBase {
14893
+ }
14894
+
14895
+ declare var GPUPipelineLayout: {
14896
+ prototype: GPUPipelineLayout;
14897
+ new(): GPUPipelineLayout;
14898
+ };
14899
+
14900
+ /**
14901
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
14902
+ * Available only in secure contexts.
14903
+ *
14904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
14905
+ */
14906
+ interface GPURenderBundle extends GPUObjectBase {
14907
+ }
14908
+
14909
+ declare var GPURenderBundle: {
14910
+ prototype: GPURenderBundle;
14911
+ new(): GPURenderBundle;
14912
+ };
14913
+
14914
+ /**
14915
+ * 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.
14916
+ * Available only in secure contexts.
14917
+ *
14918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
14919
+ */
14920
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
14921
+ }
14922
+
14923
+ declare var GPURenderPipeline: {
14924
+ prototype: GPURenderPipeline;
14925
+ new(): GPURenderPipeline;
14926
+ };
14927
+
14928
+ /**
14929
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
14930
+ * Available only in secure contexts.
14931
+ *
14932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
14933
+ */
14934
+ interface GPUSampler extends GPUObjectBase {
14935
+ }
14936
+
14937
+ declare var GPUSampler: {
14938
+ prototype: GPUSampler;
14939
+ new(): GPUSampler;
14940
+ };
14941
+
14942
+ /**
14943
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
14944
+ * Available only in secure contexts.
14945
+ *
14946
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
14947
+ */
14948
+ interface GPUSupportedFeatures {
14949
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
14950
+ }
14951
+
14952
+ declare var GPUSupportedFeatures: {
14953
+ prototype: GPUSupportedFeatures;
14954
+ new(): GPUSupportedFeatures;
14955
+ };
14956
+
14957
+ /**
14958
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
14959
+ * Available only in secure contexts.
14960
+ *
14961
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
14962
+ */
14963
+ interface GPUSupportedLimits {
14964
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14965
+ readonly maxBindGroups: number;
14966
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14967
+ readonly maxBindGroupsPlusVertexBuffers: number;
14968
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14969
+ readonly maxBindingsPerBindGroup: number;
14970
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14971
+ readonly maxBufferSize: number;
14972
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14973
+ readonly maxColorAttachmentBytesPerSample: number;
14974
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14975
+ readonly maxColorAttachments: number;
14976
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14977
+ readonly maxComputeInvocationsPerWorkgroup: number;
14978
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14979
+ readonly maxComputeWorkgroupSizeX: number;
14980
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14981
+ readonly maxComputeWorkgroupSizeY: number;
14982
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14983
+ readonly maxComputeWorkgroupSizeZ: number;
14984
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14985
+ readonly maxComputeWorkgroupStorageSize: number;
14986
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14987
+ readonly maxComputeWorkgroupsPerDimension: number;
14988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14989
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
14990
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14991
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
14992
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14993
+ readonly maxInterStageShaderVariables: number;
14994
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14995
+ readonly maxSampledTexturesPerShaderStage: number;
14996
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14997
+ readonly maxSamplersPerShaderStage: number;
14998
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14999
+ readonly maxStorageBufferBindingSize: number;
15000
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15001
+ readonly maxStorageBuffersPerShaderStage: number;
15002
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15003
+ readonly maxStorageTexturesPerShaderStage: number;
15004
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15005
+ readonly maxTextureArrayLayers: number;
15006
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15007
+ readonly maxTextureDimension1D: number;
15008
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15009
+ readonly maxTextureDimension2D: number;
15010
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15011
+ readonly maxTextureDimension3D: number;
15012
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15013
+ readonly maxUniformBufferBindingSize: number;
15014
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15015
+ readonly maxUniformBuffersPerShaderStage: number;
15016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15017
+ readonly maxVertexAttributes: number;
15018
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15019
+ readonly maxVertexBufferArrayStride: number;
15020
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15021
+ readonly maxVertexBuffers: number;
15022
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15023
+ readonly minStorageBufferOffsetAlignment: number;
15024
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15025
+ readonly minUniformBufferOffsetAlignment: number;
15026
+ }
15027
+
15028
+ declare var GPUSupportedLimits: {
15029
+ prototype: GPUSupportedLimits;
15030
+ new(): GPUSupportedLimits;
15031
+ };
15032
+
15033
+ /**
15034
+ * 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.
15035
+ * Available only in secure contexts.
15036
+ *
15037
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15038
+ */
15039
+ interface GPUTexture extends GPUObjectBase {
15040
+ /**
15041
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15042
+ *
15043
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15044
+ */
15045
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15046
+ /**
15047
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15048
+ *
15049
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15050
+ */
15051
+ readonly dimension: GPUTextureDimension;
15052
+ /**
15053
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15054
+ *
15055
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15056
+ */
15057
+ readonly format: GPUTextureFormat;
15058
+ /**
15059
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15060
+ *
15061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15062
+ */
15063
+ readonly height: GPUIntegerCoordinateOut;
15064
+ /**
15065
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15066
+ *
15067
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15068
+ */
15069
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15070
+ /**
15071
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15072
+ *
15073
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15074
+ */
15075
+ readonly sampleCount: GPUSize32Out;
15076
+ /**
15077
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15078
+ *
15079
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15080
+ */
15081
+ readonly usage: GPUFlagsConstant;
15082
+ /**
15083
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15084
+ *
15085
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15086
+ */
15087
+ readonly width: GPUIntegerCoordinateOut;
15088
+ /**
15089
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15090
+ *
15091
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15092
+ */
15093
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15094
+ /**
15095
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15096
+ *
15097
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15098
+ */
15099
+ destroy(): void;
15100
+ }
15101
+
15102
+ declare var GPUTexture: {
15103
+ prototype: GPUTexture;
15104
+ new(): GPUTexture;
15105
+ };
15106
+
15107
+ /**
15108
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15109
+ * Available only in secure contexts.
15110
+ *
15111
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15112
+ */
15113
+ interface GPUTextureView extends GPUObjectBase {
15114
+ }
15115
+
15116
+ declare var GPUTextureView: {
15117
+ prototype: GPUTextureView;
15118
+ new(): GPUTextureView;
15119
+ };
15120
+
15121
+ /**
15122
+ * 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.
15123
+ * Available only in secure contexts.
15124
+ *
15125
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15126
+ */
15127
+ interface GPUUncapturedErrorEvent extends Event {
15128
+ /**
15129
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15130
+ *
15131
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15132
+ */
15133
+ readonly error: GPUError;
15134
+ }
15135
+
15136
+ declare var GPUUncapturedErrorEvent: {
15137
+ prototype: GPUUncapturedErrorEvent;
15138
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15139
+ };
15140
+
15141
+ /**
15142
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15143
+ * Available only in secure contexts.
15144
+ *
15145
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15146
+ */
15147
+ interface GPUValidationError extends GPUError {
15148
+ }
15149
+
15150
+ declare var GPUValidationError: {
15151
+ prototype: GPUValidationError;
15152
+ new(message: string): GPUValidationError;
15153
+ };
15154
+
14732
15155
  /**
14733
15156
  * 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.
14734
15157
  *
@@ -36797,6 +37220,21 @@ interface WEBGL_multi_draw {
36797
37220
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36798
37221
  }
36799
37222
 
37223
+ /**
37224
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37225
+ * Available only in secure contexts.
37226
+ *
37227
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37228
+ */
37229
+ interface WGSLLanguageFeatures {
37230
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37231
+ }
37232
+
37233
+ declare var WGSLLanguageFeatures: {
37234
+ prototype: WGSLLanguageFeatures;
37235
+ new(): WGSLLanguageFeatures;
37236
+ };
37237
+
36800
37238
  /**
36801
37239
  * 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.
36802
37240
  * Available only in secure contexts.
@@ -42446,6 +42884,11 @@ type GLsizei = number;
42446
42884
  type GLsizeiptr = number;
42447
42885
  type GLuint = number;
42448
42886
  type GLuint64 = number;
42887
+ type GPUFlagsConstant = number;
42888
+ type GPUIntegerCoordinate = number;
42889
+ type GPUIntegerCoordinateOut = number;
42890
+ type GPUSize32Out = number;
42891
+ type GPUTextureUsageFlags = number;
42449
42892
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42450
42893
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42451
42894
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42549,7 +42992,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42549
42992
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42550
42993
  type FontFaceSetLoadStatus = "loaded" | "loading";
42551
42994
  type FullscreenNavigationUI = "auto" | "hide" | "show";
42995
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42552
42996
  type GPUPipelineErrorReason = "internal" | "validation";
42997
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
42998
+ type GPUTextureDimension = "1d" | "2d" | "3d";
42999
+ 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";
43000
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42553
43001
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42554
43002
  type GamepadHapticsResult = "complete" | "preempted";
42555
43003
  type GamepadMappingType = "" | "standard" | "xr-standard";
@@ -138,6 +138,9 @@ interface FormData {
138
138
  values(): IterableIterator<FormDataEntryValue>;
139
139
  }
140
140
 
141
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
142
+ }
143
+
141
144
  interface HTMLAllCollection {
142
145
  [Symbol.iterator](): IterableIterator<Element>;
143
146
  }
@@ -427,6 +430,9 @@ interface WEBGL_multi_draw {
427
430
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
428
431
  }
429
432
 
433
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
434
+ }
435
+
430
436
  interface WebGL2RenderingContextBase {
431
437
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
432
438
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;