@types/web 0.0.314 → 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/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.314 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.314.
50
+ You can read what changed in version 0.0.316 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.316.
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
  }
@@ -6248,6 +6267,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6248
6267
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name)
6249
6268
  */
6250
6269
  anchorName: string;
6270
+ /** The anchor-scope CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. */
6251
6271
  anchorScope: string;
6252
6272
  /**
6253
6273
  * The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline.
@@ -6358,7 +6378,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6358
6378
  */
6359
6379
  backfaceVisibility: string;
6360
6380
  /**
6361
- * 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.
6362
6382
  *
6363
6383
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
6364
6384
  */
@@ -12560,6 +12580,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12560
12580
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
12561
12581
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
12562
12582
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
12583
+ createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
12563
12584
  createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
12564
12585
  createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
12565
12586
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
@@ -14702,6 +14723,88 @@ declare var FragmentDirective: {
14702
14723
  new(): FragmentDirective;
14703
14724
  };
14704
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 **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
14756
+ * Available only in secure contexts.
14757
+ *
14758
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
14759
+ */
14760
+ interface GPUCommandBuffer extends GPUObjectBase {
14761
+ }
14762
+
14763
+ declare var GPUCommandBuffer: {
14764
+ prototype: GPUCommandBuffer;
14765
+ new(): GPUCommandBuffer;
14766
+ };
14767
+
14768
+ /**
14769
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
14770
+ * Available only in secure contexts.
14771
+ *
14772
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
14773
+ */
14774
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
14775
+ }
14776
+
14777
+ declare var GPUComputePipeline: {
14778
+ prototype: GPUComputePipeline;
14779
+ new(): GPUComputePipeline;
14780
+ };
14781
+
14782
+ /**
14783
+ * 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.
14784
+ * Available only in secure contexts.
14785
+ *
14786
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
14787
+ */
14788
+ interface GPUDeviceLostInfo {
14789
+ /**
14790
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
14791
+ *
14792
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
14793
+ */
14794
+ readonly message: string;
14795
+ /**
14796
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
14797
+ *
14798
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
14799
+ */
14800
+ readonly reason: GPUDeviceLostReason;
14801
+ }
14802
+
14803
+ declare var GPUDeviceLostInfo: {
14804
+ prototype: GPUDeviceLostInfo;
14805
+ new(): GPUDeviceLostInfo;
14806
+ };
14807
+
14705
14808
  /**
14706
14809
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
14707
14810
  * Available only in secure contexts.
@@ -14722,6 +14825,58 @@ declare var GPUError: {
14722
14825
  new(): GPUError;
14723
14826
  };
14724
14827
 
14828
+ /**
14829
+ * 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.
14830
+ * Available only in secure contexts.
14831
+ *
14832
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
14833
+ */
14834
+ interface GPUExternalTexture extends GPUObjectBase {
14835
+ }
14836
+
14837
+ declare var GPUExternalTexture: {
14838
+ prototype: GPUExternalTexture;
14839
+ new(): GPUExternalTexture;
14840
+ };
14841
+
14842
+ /**
14843
+ * 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.
14844
+ * Available only in secure contexts.
14845
+ *
14846
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
14847
+ */
14848
+ interface GPUInternalError extends GPUError {
14849
+ }
14850
+
14851
+ declare var GPUInternalError: {
14852
+ prototype: GPUInternalError;
14853
+ new(message: string): GPUInternalError;
14854
+ };
14855
+
14856
+ interface GPUObjectBase {
14857
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
14858
+ label: string;
14859
+ }
14860
+
14861
+ /**
14862
+ * 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.
14863
+ * Available only in secure contexts.
14864
+ *
14865
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
14866
+ */
14867
+ interface GPUOutOfMemoryError extends GPUError {
14868
+ }
14869
+
14870
+ declare var GPUOutOfMemoryError: {
14871
+ prototype: GPUOutOfMemoryError;
14872
+ new(message: string): GPUOutOfMemoryError;
14873
+ };
14874
+
14875
+ interface GPUPipelineBase {
14876
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
14877
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
14878
+ }
14879
+
14725
14880
  /**
14726
14881
  * 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.
14727
14882
  * Available only in secure contexts.
@@ -14742,6 +14897,275 @@ declare var GPUPipelineError: {
14742
14897
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
14743
14898
  };
14744
14899
 
14900
+ /**
14901
+ * 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.
14902
+ * Available only in secure contexts.
14903
+ *
14904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
14905
+ */
14906
+ interface GPUPipelineLayout extends GPUObjectBase {
14907
+ }
14908
+
14909
+ declare var GPUPipelineLayout: {
14910
+ prototype: GPUPipelineLayout;
14911
+ new(): GPUPipelineLayout;
14912
+ };
14913
+
14914
+ /**
14915
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
14916
+ * Available only in secure contexts.
14917
+ *
14918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
14919
+ */
14920
+ interface GPURenderBundle extends GPUObjectBase {
14921
+ }
14922
+
14923
+ declare var GPURenderBundle: {
14924
+ prototype: GPURenderBundle;
14925
+ new(): GPURenderBundle;
14926
+ };
14927
+
14928
+ /**
14929
+ * 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.
14930
+ * Available only in secure contexts.
14931
+ *
14932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
14933
+ */
14934
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
14935
+ }
14936
+
14937
+ declare var GPURenderPipeline: {
14938
+ prototype: GPURenderPipeline;
14939
+ new(): GPURenderPipeline;
14940
+ };
14941
+
14942
+ /**
14943
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
14944
+ * Available only in secure contexts.
14945
+ *
14946
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
14947
+ */
14948
+ interface GPUSampler extends GPUObjectBase {
14949
+ }
14950
+
14951
+ declare var GPUSampler: {
14952
+ prototype: GPUSampler;
14953
+ new(): GPUSampler;
14954
+ };
14955
+
14956
+ /**
14957
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
14958
+ * Available only in secure contexts.
14959
+ *
14960
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
14961
+ */
14962
+ interface GPUSupportedFeatures {
14963
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
14964
+ }
14965
+
14966
+ declare var GPUSupportedFeatures: {
14967
+ prototype: GPUSupportedFeatures;
14968
+ new(): GPUSupportedFeatures;
14969
+ };
14970
+
14971
+ /**
14972
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
14973
+ * Available only in secure contexts.
14974
+ *
14975
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
14976
+ */
14977
+ interface GPUSupportedLimits {
14978
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14979
+ readonly maxBindGroups: number;
14980
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14981
+ readonly maxBindGroupsPlusVertexBuffers: number;
14982
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14983
+ readonly maxBindingsPerBindGroup: number;
14984
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14985
+ readonly maxBufferSize: number;
14986
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14987
+ readonly maxColorAttachmentBytesPerSample: number;
14988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14989
+ readonly maxColorAttachments: number;
14990
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14991
+ readonly maxComputeInvocationsPerWorkgroup: number;
14992
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14993
+ readonly maxComputeWorkgroupSizeX: number;
14994
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14995
+ readonly maxComputeWorkgroupSizeY: number;
14996
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14997
+ readonly maxComputeWorkgroupSizeZ: number;
14998
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14999
+ readonly maxComputeWorkgroupStorageSize: number;
15000
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15001
+ readonly maxComputeWorkgroupsPerDimension: number;
15002
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15003
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
15004
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15005
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
15006
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15007
+ readonly maxInterStageShaderVariables: number;
15008
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15009
+ readonly maxSampledTexturesPerShaderStage: number;
15010
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15011
+ readonly maxSamplersPerShaderStage: number;
15012
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15013
+ readonly maxStorageBufferBindingSize: number;
15014
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15015
+ readonly maxStorageBuffersPerShaderStage: number;
15016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15017
+ readonly maxStorageTexturesPerShaderStage: number;
15018
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15019
+ readonly maxTextureArrayLayers: number;
15020
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15021
+ readonly maxTextureDimension1D: number;
15022
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15023
+ readonly maxTextureDimension2D: number;
15024
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15025
+ readonly maxTextureDimension3D: number;
15026
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15027
+ readonly maxUniformBufferBindingSize: number;
15028
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15029
+ readonly maxUniformBuffersPerShaderStage: number;
15030
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15031
+ readonly maxVertexAttributes: number;
15032
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15033
+ readonly maxVertexBufferArrayStride: number;
15034
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15035
+ readonly maxVertexBuffers: number;
15036
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15037
+ readonly minStorageBufferOffsetAlignment: number;
15038
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15039
+ readonly minUniformBufferOffsetAlignment: number;
15040
+ }
15041
+
15042
+ declare var GPUSupportedLimits: {
15043
+ prototype: GPUSupportedLimits;
15044
+ new(): GPUSupportedLimits;
15045
+ };
15046
+
15047
+ /**
15048
+ * 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.
15049
+ * Available only in secure contexts.
15050
+ *
15051
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
15052
+ */
15053
+ interface GPUTexture extends GPUObjectBase {
15054
+ /**
15055
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
15056
+ *
15057
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
15058
+ */
15059
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
15060
+ /**
15061
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
15062
+ *
15063
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
15064
+ */
15065
+ readonly dimension: GPUTextureDimension;
15066
+ /**
15067
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
15068
+ *
15069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
15070
+ */
15071
+ readonly format: GPUTextureFormat;
15072
+ /**
15073
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
15074
+ *
15075
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
15076
+ */
15077
+ readonly height: GPUIntegerCoordinateOut;
15078
+ /**
15079
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
15080
+ *
15081
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
15082
+ */
15083
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
15084
+ /**
15085
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
15086
+ *
15087
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
15088
+ */
15089
+ readonly sampleCount: GPUSize32Out;
15090
+ /**
15091
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
15092
+ *
15093
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
15094
+ */
15095
+ readonly usage: GPUFlagsConstant;
15096
+ /**
15097
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
15098
+ *
15099
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
15100
+ */
15101
+ readonly width: GPUIntegerCoordinateOut;
15102
+ /**
15103
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
15104
+ *
15105
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
15106
+ */
15107
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
15108
+ /**
15109
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
15110
+ *
15111
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
15112
+ */
15113
+ destroy(): void;
15114
+ }
15115
+
15116
+ declare var GPUTexture: {
15117
+ prototype: GPUTexture;
15118
+ new(): GPUTexture;
15119
+ };
15120
+
15121
+ /**
15122
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
15123
+ * Available only in secure contexts.
15124
+ *
15125
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
15126
+ */
15127
+ interface GPUTextureView extends GPUObjectBase {
15128
+ }
15129
+
15130
+ declare var GPUTextureView: {
15131
+ prototype: GPUTextureView;
15132
+ new(): GPUTextureView;
15133
+ };
15134
+
15135
+ /**
15136
+ * 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.
15137
+ * Available only in secure contexts.
15138
+ *
15139
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
15140
+ */
15141
+ interface GPUUncapturedErrorEvent extends Event {
15142
+ /**
15143
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
15144
+ *
15145
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
15146
+ */
15147
+ readonly error: GPUError;
15148
+ }
15149
+
15150
+ declare var GPUUncapturedErrorEvent: {
15151
+ prototype: GPUUncapturedErrorEvent;
15152
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
15153
+ };
15154
+
15155
+ /**
15156
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
15157
+ * Available only in secure contexts.
15158
+ *
15159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
15160
+ */
15161
+ interface GPUValidationError extends GPUError {
15162
+ }
15163
+
15164
+ declare var GPUValidationError: {
15165
+ prototype: GPUValidationError;
15166
+ new(message: string): GPUValidationError;
15167
+ };
15168
+
14745
15169
  /**
14746
15170
  * 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.
14747
15171
  *
@@ -19854,7 +20278,7 @@ interface HTMLTextAreaElement extends HTMLElement {
19854
20278
  *
19855
20279
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
19856
20280
  */
19857
- selectionDirection: "forward" | "backward" | "none";
20281
+ selectionDirection: SelectionDirection;
19858
20282
  /**
19859
20283
  * The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a <textarea> element. It is a number representing the last index of the selected text. It can be used to both retrieve and set the index of the end of a <textarea>s selected text.
19860
20284
  *
@@ -19945,7 +20369,7 @@ interface HTMLTextAreaElement extends HTMLElement {
19945
20369
  *
19946
20370
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
19947
20371
  */
19948
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
20372
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
19949
20373
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
19950
20374
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
19951
20375
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -34370,12 +34794,6 @@ declare var StorageManager: {
34370
34794
  new(): StorageManager;
34371
34795
  };
34372
34796
 
34373
- /** @deprecated */
34374
- interface StyleMedia {
34375
- type: string;
34376
- matchMedium(mediaquery: string): boolean;
34377
- }
34378
-
34379
34797
  /**
34380
34798
  * The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
34381
34799
  *
@@ -34603,6 +35021,7 @@ interface SubtleCrypto {
34603
35021
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
34604
35022
  */
34605
35023
  generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
35024
+ generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
34606
35025
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
34607
35026
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
34608
35027
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
@@ -36827,6 +37246,21 @@ interface WEBGL_multi_draw {
36827
37246
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
36828
37247
  }
36829
37248
 
37249
+ /**
37250
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
37251
+ * Available only in secure contexts.
37252
+ *
37253
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
37254
+ */
37255
+ interface WGSLLanguageFeatures {
37256
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
37257
+ }
37258
+
37259
+ declare var WGSLLanguageFeatures: {
37260
+ prototype: WGSLLanguageFeatures;
37261
+ new(): WGSLLanguageFeatures;
37262
+ };
37263
+
36830
37264
  /**
36831
37265
  * 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.
36832
37266
  * Available only in secure contexts.
@@ -42476,6 +42910,11 @@ type GLsizei = number;
42476
42910
  type GLsizeiptr = number;
42477
42911
  type GLuint = number;
42478
42912
  type GLuint64 = number;
42913
+ type GPUFlagsConstant = number;
42914
+ type GPUIntegerCoordinate = number;
42915
+ type GPUIntegerCoordinateOut = number;
42916
+ type GPUSize32Out = number;
42917
+ type GPUTextureUsageFlags = number;
42479
42918
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
42480
42919
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
42481
42920
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
@@ -42579,7 +43018,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
42579
43018
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
42580
43019
  type FontFaceSetLoadStatus = "loaded" | "loading";
42581
43020
  type FullscreenNavigationUI = "auto" | "hide" | "show";
43021
+ type GPUDeviceLostReason = "destroyed" | "unknown";
42582
43022
  type GPUPipelineErrorReason = "internal" | "validation";
43023
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
43024
+ type GPUTextureDimension = "1d" | "2d" | "3d";
43025
+ 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";
43026
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
42583
43027
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
42584
43028
  type GamepadHapticsResult = "complete" | "preempted";
42585
43029
  type GamepadMappingType = "" | "standard" | "xr-standard";
@@ -42863,6 +43307,9 @@ interface FormData {
42863
43307
  values(): FormDataIterator<FormDataEntryValue>;
42864
43308
  }
42865
43309
 
43310
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
43311
+ }
43312
+
42866
43313
  interface HTMLAllCollection {
42867
43314
  [Symbol.iterator](): ArrayIterator<Element>;
42868
43315
  }
@@ -43084,6 +43531,7 @@ interface SubtleCrypto {
43084
43531
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
43085
43532
  */
43086
43533
  generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
43534
+ generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
43087
43535
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
43088
43536
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
43089
43537
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
@@ -43167,6 +43615,9 @@ interface WEBGL_multi_draw {
43167
43615
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
43168
43616
  }
43169
43617
 
43618
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
43619
+ }
43620
+
43170
43621
  interface WebGL2RenderingContextBase {
43171
43622
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
43172
43623
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.314",
3
+ "version": "0.0.316",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],