@types/web 0.0.334 → 0.0.336

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
@@ -815,12 +815,43 @@ interface GPUBindGroupEntry {
815
815
  resource: GPUBindingResource;
816
816
  }
817
817
 
818
+ interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
819
+ entries: GPUBindGroupLayoutEntry[];
820
+ }
821
+
822
+ interface GPUBindGroupLayoutEntry {
823
+ binding: GPUIndex32;
824
+ buffer?: GPUBufferBindingLayout;
825
+ externalTexture?: GPUExternalTextureBindingLayout;
826
+ sampler?: GPUSamplerBindingLayout;
827
+ storageTexture?: GPUStorageTextureBindingLayout;
828
+ texture?: GPUTextureBindingLayout;
829
+ visibility: GPUShaderStageFlags;
830
+ }
831
+
832
+ interface GPUBlendComponent {
833
+ dstFactor?: GPUBlendFactor;
834
+ operation?: GPUBlendOperation;
835
+ srcFactor?: GPUBlendFactor;
836
+ }
837
+
838
+ interface GPUBlendState {
839
+ alpha: GPUBlendComponent;
840
+ color: GPUBlendComponent;
841
+ }
842
+
818
843
  interface GPUBufferBinding {
819
844
  buffer: GPUBuffer;
820
845
  offset?: GPUSize64;
821
846
  size?: GPUSize64;
822
847
  }
823
848
 
849
+ interface GPUBufferBindingLayout {
850
+ hasDynamicOffset?: boolean;
851
+ minBindingSize?: GPUSize64;
852
+ type?: GPUBufferBindingType;
853
+ }
854
+
824
855
  interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
825
856
  mappedAtCreation?: boolean;
826
857
  size: GPUSize64;
@@ -848,6 +879,12 @@ interface GPUColorDict {
848
879
  r: number;
849
880
  }
850
881
 
882
+ interface GPUColorTargetState {
883
+ blend?: GPUBlendState;
884
+ format: GPUTextureFormat;
885
+ writeMask?: GPUColorWriteFlags;
886
+ }
887
+
851
888
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
852
889
  }
853
890
 
@@ -879,17 +916,49 @@ interface GPUCopyExternalImageSourceInfo {
879
916
  source: GPUCopyExternalImageSource;
880
917
  }
881
918
 
919
+ interface GPUDepthStencilState {
920
+ depthBias?: GPUDepthBias;
921
+ depthBiasClamp?: number;
922
+ depthBiasSlopeScale?: number;
923
+ depthCompare?: GPUCompareFunction;
924
+ depthWriteEnabled?: boolean;
925
+ format: GPUTextureFormat;
926
+ stencilBack?: GPUStencilFaceState;
927
+ stencilFront?: GPUStencilFaceState;
928
+ stencilReadMask?: GPUStencilValue;
929
+ stencilWriteMask?: GPUStencilValue;
930
+ }
931
+
932
+ interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
933
+ defaultQueue?: GPUQueueDescriptor;
934
+ requiredFeatures?: GPUFeatureName[];
935
+ requiredLimits?: Record<string, GPUSize64 | undefined>;
936
+ }
937
+
882
938
  interface GPUExtent3DDict {
883
939
  depthOrArrayLayers?: GPUIntegerCoordinate;
884
940
  height?: GPUIntegerCoordinate;
885
941
  width: GPUIntegerCoordinate;
886
942
  }
887
943
 
944
+ interface GPUExternalTextureBindingLayout {
945
+ }
946
+
888
947
  interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
889
948
  colorSpace?: PredefinedColorSpace;
890
949
  source: HTMLVideoElement | VideoFrame;
891
950
  }
892
951
 
952
+ interface GPUFragmentState extends GPUProgrammableStage {
953
+ targets: (GPUColorTargetState | null)[];
954
+ }
955
+
956
+ interface GPUMultisampleState {
957
+ alphaToCoverageEnabled?: boolean;
958
+ count?: GPUSize32;
959
+ mask?: GPUSampleMask;
960
+ }
961
+
893
962
  interface GPUObjectDescriptorBase {
894
963
  label?: string;
895
964
  }
@@ -917,6 +986,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
917
986
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
918
987
  }
919
988
 
989
+ interface GPUPrimitiveState {
990
+ cullMode?: GPUCullMode;
991
+ frontFace?: GPUFrontFace;
992
+ stripIndexFormat?: GPUIndexFormat;
993
+ topology?: GPUPrimitiveTopology;
994
+ unclippedDepth?: boolean;
995
+ }
996
+
920
997
  interface GPUProgrammableStage {
921
998
  constants?: Record<string, GPUPipelineConstantValue>;
922
999
  entryPoint?: string;
@@ -928,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
928
1005
  type: GPUQueryType;
929
1006
  }
930
1007
 
1008
+ interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
1009
+ }
1010
+
931
1011
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
932
1012
  }
933
1013
 
@@ -977,6 +1057,23 @@ interface GPURenderPassTimestampWrites {
977
1057
  querySet: GPUQuerySet;
978
1058
  }
979
1059
 
1060
+ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
1061
+ depthStencil?: GPUDepthStencilState;
1062
+ fragment?: GPUFragmentState;
1063
+ multisample?: GPUMultisampleState;
1064
+ primitive?: GPUPrimitiveState;
1065
+ vertex: GPUVertexState;
1066
+ }
1067
+
1068
+ interface GPURequestAdapterOptions {
1069
+ forceFallbackAdapter?: boolean;
1070
+ powerPreference?: GPUPowerPreference;
1071
+ }
1072
+
1073
+ interface GPUSamplerBindingLayout {
1074
+ type?: GPUSamplerBindingType;
1075
+ }
1076
+
980
1077
  interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
981
1078
  addressModeU?: GPUAddressMode;
982
1079
  addressModeV?: GPUAddressMode;
@@ -994,6 +1091,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
994
1091
  code: string;
995
1092
  }
996
1093
 
1094
+ interface GPUStencilFaceState {
1095
+ compare?: GPUCompareFunction;
1096
+ depthFailOp?: GPUStencilOperation;
1097
+ failOp?: GPUStencilOperation;
1098
+ passOp?: GPUStencilOperation;
1099
+ }
1100
+
1101
+ interface GPUStorageTextureBindingLayout {
1102
+ access?: GPUStorageTextureAccess;
1103
+ format: GPUTextureFormat;
1104
+ viewDimension?: GPUTextureViewDimension;
1105
+ }
1106
+
997
1107
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
998
1108
  buffer: GPUBuffer;
999
1109
  }
@@ -1011,6 +1121,12 @@ interface GPUTexelCopyTextureInfo {
1011
1121
  texture: GPUTexture;
1012
1122
  }
1013
1123
 
1124
+ interface GPUTextureBindingLayout {
1125
+ multisampled?: boolean;
1126
+ sampleType?: GPUTextureSampleType;
1127
+ viewDimension?: GPUTextureViewDimension;
1128
+ }
1129
+
1014
1130
  interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
1015
1131
  dimension?: GPUTextureDimension;
1016
1132
  format: GPUTextureFormat;
@@ -1036,6 +1152,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
1036
1152
  error: GPUError;
1037
1153
  }
1038
1154
 
1155
+ interface GPUVertexAttribute {
1156
+ format: GPUVertexFormat;
1157
+ offset: GPUSize64;
1158
+ shaderLocation: GPUIndex32;
1159
+ }
1160
+
1161
+ interface GPUVertexBufferLayout {
1162
+ arrayStride: GPUSize64;
1163
+ attributes: GPUVertexAttribute[];
1164
+ stepMode?: GPUVertexStepMode;
1165
+ }
1166
+
1167
+ interface GPUVertexState extends GPUProgrammableStage {
1168
+ buffers?: (GPUVertexBufferLayout | null)[];
1169
+ }
1170
+
1039
1171
  interface GainOptions extends AudioNodeOptions {
1040
1172
  gain?: number;
1041
1173
  }
@@ -11098,6 +11230,7 @@ interface CustomElementRegistry {
11098
11230
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
11099
11231
  */
11100
11232
  getName(constructor: CustomElementConstructor): string | null;
11233
+ initialize(root: Node): void;
11101
11234
  /**
11102
11235
  * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
11103
11236
  *
@@ -13095,6 +13228,7 @@ interface DocumentOrShadowRoot {
13095
13228
  readonly activeElement: Element | null;
13096
13229
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
13097
13230
  adoptedStyleSheets: CSSStyleSheet[];
13231
+ readonly customElementRegistry: CustomElementRegistry | null;
13098
13232
  /**
13099
13233
  * Returns document's fullscreen element.
13100
13234
  *
@@ -13404,6 +13538,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
13404
13538
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
13405
13539
  */
13406
13540
  readonly currentCSSZoom: number;
13541
+ readonly customElementRegistry: CustomElementRegistry | null;
13407
13542
  /**
13408
13543
  * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
13409
13544
  *
@@ -14962,6 +15097,76 @@ declare var FragmentDirective: {
14962
15097
  new(): FragmentDirective;
14963
15098
  };
14964
15099
 
15100
+ /**
15101
+ * The **`GPU`** interface of the WebGPU API is the starting point for using WebGPU. It can be used to return a GPUAdapter from which you can request devices, configure features and limits, and more.
15102
+ * Available only in secure contexts.
15103
+ *
15104
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
15105
+ */
15106
+ interface GPU {
15107
+ /**
15108
+ * The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
15109
+ *
15110
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
15111
+ */
15112
+ readonly wgslLanguageFeatures: WGSLLanguageFeatures;
15113
+ /**
15114
+ * The **`getPreferredCanvasFormat()`** method of the GPU interface returns the optimal canvas texture format for displaying 8-bit depth, standard dynamic range content on the current system.
15115
+ *
15116
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
15117
+ */
15118
+ getPreferredCanvasFormat(): GPUTextureFormat;
15119
+ /**
15120
+ * The **`requestAdapter()`** method of the GPU interface returns a Promise that fulfills with a GPUAdapter object instance. From this you can request a GPUDevice, adapter info, features, and limits.
15121
+ *
15122
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
15123
+ */
15124
+ requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
15125
+ }
15126
+
15127
+ declare var GPU: {
15128
+ prototype: GPU;
15129
+ new(): GPU;
15130
+ };
15131
+
15132
+ /**
15133
+ * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
15134
+ * Available only in secure contexts.
15135
+ *
15136
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
15137
+ */
15138
+ interface GPUAdapter {
15139
+ /**
15140
+ * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
15141
+ *
15142
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
15143
+ */
15144
+ readonly features: GPUSupportedFeatures;
15145
+ /**
15146
+ * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
15147
+ *
15148
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
15149
+ */
15150
+ readonly info: GPUAdapterInfo;
15151
+ /**
15152
+ * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
15153
+ *
15154
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
15155
+ */
15156
+ readonly limits: GPUSupportedLimits;
15157
+ /**
15158
+ * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU.
15159
+ *
15160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
15161
+ */
15162
+ requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
15163
+ }
15164
+
15165
+ declare var GPUAdapter: {
15166
+ prototype: GPUAdapter;
15167
+ new(): GPUAdapter;
15168
+ };
15169
+
14965
15170
  /**
14966
15171
  * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
14967
15172
  * Available only in secure contexts.
@@ -15415,6 +15620,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15415
15620
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15416
15621
  */
15417
15622
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15623
+ /**
15624
+ * The **`createBindGroupLayout()`** method of the GPUDevice interface creates a GPUBindGroupLayout that 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.
15625
+ *
15626
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
15627
+ */
15628
+ createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
15418
15629
  /**
15419
15630
  * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
15420
15631
  *
@@ -15457,6 +15668,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15457
15668
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
15458
15669
  */
15459
15670
  createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
15671
+ /**
15672
+ * The **`createRenderPipeline()`** method of the GPUDevice interface creates a GPURenderPipeline that can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
15673
+ *
15674
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
15675
+ */
15676
+ createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
15677
+ /**
15678
+ * The **`createRenderPipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPURenderPipeline, which can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder, once the pipeline can be used without any stalling.
15679
+ *
15680
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
15681
+ */
15682
+ createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
15460
15683
  /**
15461
15684
  * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
15462
15685
  *
@@ -21080,6 +21303,7 @@ interface HTMLTemplateElement extends HTMLElement {
21080
21303
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21081
21304
  */
21082
21305
  shadowRootClonable: boolean;
21306
+ shadowRootCustomElementRegistry: string;
21083
21307
  /**
21084
21308
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
21085
21309
  *
@@ -25442,6 +25666,12 @@ declare var NavigationHistoryEntry: {
25442
25666
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
25443
25667
  */
25444
25668
  interface NavigationPrecommitController {
25669
+ /**
25670
+ * The **`addHandler()`** method of the NavigationPrecommitController interface allows you to dynamically add a handler callback function in precommit code, which will then be run after the navigation has committed.
25671
+ *
25672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
25673
+ */
25674
+ addHandler(handler: NavigationInterceptHandler): void;
25445
25675
  /**
25446
25676
  * The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
25447
25677
  *
@@ -25530,7 +25760,7 @@ declare var NavigationTransition: {
25530
25760
  *
25531
25761
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
25532
25762
  */
25533
- interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
25763
+ interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
25534
25764
  /**
25535
25765
  * The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
25536
25766
  * Available only in secure contexts.
@@ -25695,6 +25925,15 @@ interface NavigatorCookies {
25695
25925
  readonly cookieEnabled: boolean;
25696
25926
  }
25697
25927
 
25928
+ interface NavigatorGPU {
25929
+ /**
25930
+ * Available only in secure contexts.
25931
+ *
25932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
25933
+ */
25934
+ readonly gpu: GPU;
25935
+ }
25936
+
25698
25937
  interface NavigatorID {
25699
25938
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
25700
25939
  readonly appCodeName: string;
@@ -43919,7 +44158,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
43919
44158
  type GPUBufferDynamicOffset = number;
43920
44159
  type GPUBufferUsageFlags = number;
43921
44160
  type GPUColor = number[] | GPUColorDict;
44161
+ type GPUColorWriteFlags = number;
43922
44162
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
44163
+ type GPUDepthBias = number;
43923
44164
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
43924
44165
  type GPUFlagsConstant = number;
43925
44166
  type GPUIndex32 = number;
@@ -43929,6 +44170,8 @@ type GPUMapModeFlags = number;
43929
44170
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
43930
44171
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
43931
44172
  type GPUPipelineConstantValue = number;
44173
+ type GPUSampleMask = number;
44174
+ type GPUShaderStageFlags = number;
43932
44175
  type GPUSignedOffset32 = number;
43933
44176
  type GPUSize32 = number;
43934
44177
  type GPUSize32Out = number;
@@ -44044,24 +44287,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
44044
44287
  type FullscreenNavigationUI = "auto" | "hide" | "show";
44045
44288
  type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
44046
44289
  type GPUAutoLayoutMode = "auto";
44290
+ type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero";
44291
+ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
44292
+ type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
44047
44293
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
44048
44294
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
44049
44295
  type GPUCanvasToneMappingMode = "extended" | "standard";
44050
44296
  type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
44051
44297
  type GPUCompilationMessageType = "error" | "info" | "warning";
44298
+ type GPUCullMode = "back" | "front" | "none";
44052
44299
  type GPUDeviceLostReason = "destroyed" | "unknown";
44053
44300
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
44301
+ type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query";
44054
44302
  type GPUFilterMode = "linear" | "nearest";
44303
+ type GPUFrontFace = "ccw" | "cw";
44055
44304
  type GPUIndexFormat = "uint16" | "uint32";
44056
44305
  type GPULoadOp = "clear" | "load";
44057
44306
  type GPUMipmapFilterMode = "linear" | "nearest";
44058
44307
  type GPUPipelineErrorReason = "internal" | "validation";
44308
+ type GPUPowerPreference = "high-performance" | "low-power";
44309
+ type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
44059
44310
  type GPUQueryType = "occlusion" | "timestamp";
44311
+ type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
44312
+ type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
44313
+ type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
44060
44314
  type GPUStoreOp = "discard" | "store";
44061
44315
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
44062
44316
  type GPUTextureDimension = "1d" | "2d" | "3d";
44063
44317
  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";
44318
+ type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
44064
44319
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
44320
+ type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
44321
+ type GPUVertexStepMode = "instance" | "vertex";
44065
44322
  type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
44066
44323
  type GamepadHapticsResult = "complete" | "preempted";
44067
44324
  type GamepadMappingType = "" | "standard" | "xr-standard";