@types/sharedworker 0.0.218 → 0.0.220

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.218 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.218.
31
+ You can read what changed in version 0.0.220 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.220.
package/index.d.ts CHANGED
@@ -229,12 +229,43 @@ interface GPUBindGroupEntry {
229
229
  resource: GPUBindingResource;
230
230
  }
231
231
 
232
+ interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
233
+ entries: GPUBindGroupLayoutEntry[];
234
+ }
235
+
236
+ interface GPUBindGroupLayoutEntry {
237
+ binding: GPUIndex32;
238
+ buffer?: GPUBufferBindingLayout;
239
+ externalTexture?: GPUExternalTextureBindingLayout;
240
+ sampler?: GPUSamplerBindingLayout;
241
+ storageTexture?: GPUStorageTextureBindingLayout;
242
+ texture?: GPUTextureBindingLayout;
243
+ visibility: GPUShaderStageFlags;
244
+ }
245
+
246
+ interface GPUBlendComponent {
247
+ dstFactor?: GPUBlendFactor;
248
+ operation?: GPUBlendOperation;
249
+ srcFactor?: GPUBlendFactor;
250
+ }
251
+
252
+ interface GPUBlendState {
253
+ alpha: GPUBlendComponent;
254
+ color: GPUBlendComponent;
255
+ }
256
+
232
257
  interface GPUBufferBinding {
233
258
  buffer: GPUBuffer;
234
259
  offset?: GPUSize64;
235
260
  size?: GPUSize64;
236
261
  }
237
262
 
263
+ interface GPUBufferBindingLayout {
264
+ hasDynamicOffset?: boolean;
265
+ minBindingSize?: GPUSize64;
266
+ type?: GPUBufferBindingType;
267
+ }
268
+
238
269
  interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
239
270
  mappedAtCreation?: boolean;
240
271
  size: GPUSize64;
@@ -262,6 +293,12 @@ interface GPUColorDict {
262
293
  r: number;
263
294
  }
264
295
 
296
+ interface GPUColorTargetState {
297
+ blend?: GPUBlendState;
298
+ format: GPUTextureFormat;
299
+ writeMask?: GPUColorWriteFlags;
300
+ }
301
+
265
302
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
266
303
  }
267
304
 
@@ -293,16 +330,48 @@ interface GPUCopyExternalImageSourceInfo {
293
330
  source: GPUCopyExternalImageSource;
294
331
  }
295
332
 
333
+ interface GPUDepthStencilState {
334
+ depthBias?: GPUDepthBias;
335
+ depthBiasClamp?: number;
336
+ depthBiasSlopeScale?: number;
337
+ depthCompare?: GPUCompareFunction;
338
+ depthWriteEnabled?: boolean;
339
+ format: GPUTextureFormat;
340
+ stencilBack?: GPUStencilFaceState;
341
+ stencilFront?: GPUStencilFaceState;
342
+ stencilReadMask?: GPUStencilValue;
343
+ stencilWriteMask?: GPUStencilValue;
344
+ }
345
+
346
+ interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
347
+ defaultQueue?: GPUQueueDescriptor;
348
+ requiredFeatures?: GPUFeatureName[];
349
+ requiredLimits?: Record<string, GPUSize64 | undefined>;
350
+ }
351
+
296
352
  interface GPUExtent3DDict {
297
353
  depthOrArrayLayers?: GPUIntegerCoordinate;
298
354
  height?: GPUIntegerCoordinate;
299
355
  width: GPUIntegerCoordinate;
300
356
  }
301
357
 
358
+ interface GPUExternalTextureBindingLayout {
359
+ }
360
+
302
361
  interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
303
362
  colorSpace?: PredefinedColorSpace;
304
363
  }
305
364
 
365
+ interface GPUFragmentState extends GPUProgrammableStage {
366
+ targets: (GPUColorTargetState | null)[];
367
+ }
368
+
369
+ interface GPUMultisampleState {
370
+ alphaToCoverageEnabled?: boolean;
371
+ count?: GPUSize32;
372
+ mask?: GPUSampleMask;
373
+ }
374
+
306
375
  interface GPUObjectDescriptorBase {
307
376
  label?: string;
308
377
  }
@@ -330,6 +399,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
330
399
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
331
400
  }
332
401
 
402
+ interface GPUPrimitiveState {
403
+ cullMode?: GPUCullMode;
404
+ frontFace?: GPUFrontFace;
405
+ stripIndexFormat?: GPUIndexFormat;
406
+ topology?: GPUPrimitiveTopology;
407
+ unclippedDepth?: boolean;
408
+ }
409
+
333
410
  interface GPUProgrammableStage {
334
411
  constants?: Record<string, GPUPipelineConstantValue>;
335
412
  entryPoint?: string;
@@ -341,6 +418,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
341
418
  type: GPUQueryType;
342
419
  }
343
420
 
421
+ interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
422
+ }
423
+
344
424
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
345
425
  }
346
426
 
@@ -390,6 +470,23 @@ interface GPURenderPassTimestampWrites {
390
470
  querySet: GPUQuerySet;
391
471
  }
392
472
 
473
+ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
474
+ depthStencil?: GPUDepthStencilState;
475
+ fragment?: GPUFragmentState;
476
+ multisample?: GPUMultisampleState;
477
+ primitive?: GPUPrimitiveState;
478
+ vertex: GPUVertexState;
479
+ }
480
+
481
+ interface GPURequestAdapterOptions {
482
+ forceFallbackAdapter?: boolean;
483
+ powerPreference?: GPUPowerPreference;
484
+ }
485
+
486
+ interface GPUSamplerBindingLayout {
487
+ type?: GPUSamplerBindingType;
488
+ }
489
+
393
490
  interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
394
491
  addressModeU?: GPUAddressMode;
395
492
  addressModeV?: GPUAddressMode;
@@ -407,6 +504,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
407
504
  code: string;
408
505
  }
409
506
 
507
+ interface GPUStencilFaceState {
508
+ compare?: GPUCompareFunction;
509
+ depthFailOp?: GPUStencilOperation;
510
+ failOp?: GPUStencilOperation;
511
+ passOp?: GPUStencilOperation;
512
+ }
513
+
514
+ interface GPUStorageTextureBindingLayout {
515
+ access?: GPUStorageTextureAccess;
516
+ format: GPUTextureFormat;
517
+ viewDimension?: GPUTextureViewDimension;
518
+ }
519
+
410
520
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
411
521
  buffer: GPUBuffer;
412
522
  }
@@ -424,6 +534,12 @@ interface GPUTexelCopyTextureInfo {
424
534
  texture: GPUTexture;
425
535
  }
426
536
 
537
+ interface GPUTextureBindingLayout {
538
+ multisampled?: boolean;
539
+ sampleType?: GPUTextureSampleType;
540
+ viewDimension?: GPUTextureViewDimension;
541
+ }
542
+
427
543
  interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
428
544
  dimension?: GPUTextureDimension;
429
545
  format: GPUTextureFormat;
@@ -449,6 +565,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
449
565
  error: GPUError;
450
566
  }
451
567
 
568
+ interface GPUVertexAttribute {
569
+ format: GPUVertexFormat;
570
+ offset: GPUSize64;
571
+ shaderLocation: GPUIndex32;
572
+ }
573
+
574
+ interface GPUVertexBufferLayout {
575
+ arrayStride: GPUSize64;
576
+ attributes: GPUVertexAttribute[];
577
+ stepMode?: GPUVertexStepMode;
578
+ }
579
+
580
+ interface GPUVertexState extends GPUProgrammableStage {
581
+ buffers?: (GPUVertexBufferLayout | null)[];
582
+ }
583
+
452
584
  interface GetNotificationOptions {
453
585
  tag?: string;
454
586
  }
@@ -4090,6 +4222,76 @@ declare var FormData: {
4090
4222
  new(): FormData;
4091
4223
  };
4092
4224
 
4225
+ /**
4226
+ * 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.
4227
+ * Available only in secure contexts.
4228
+ *
4229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
4230
+ */
4231
+ interface GPU {
4232
+ /**
4233
+ * The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
4234
+ *
4235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
4236
+ */
4237
+ readonly wgslLanguageFeatures: WGSLLanguageFeatures;
4238
+ /**
4239
+ * 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.
4240
+ *
4241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
4242
+ */
4243
+ getPreferredCanvasFormat(): GPUTextureFormat;
4244
+ /**
4245
+ * 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.
4246
+ *
4247
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
4248
+ */
4249
+ requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
4250
+ }
4251
+
4252
+ declare var GPU: {
4253
+ prototype: GPU;
4254
+ new(): GPU;
4255
+ };
4256
+
4257
+ /**
4258
+ * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
4259
+ * Available only in secure contexts.
4260
+ *
4261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
4262
+ */
4263
+ interface GPUAdapter {
4264
+ /**
4265
+ * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
4266
+ *
4267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
4268
+ */
4269
+ readonly features: GPUSupportedFeatures;
4270
+ /**
4271
+ * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
4272
+ *
4273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
4274
+ */
4275
+ readonly info: GPUAdapterInfo;
4276
+ /**
4277
+ * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
4278
+ *
4279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
4280
+ */
4281
+ readonly limits: GPUSupportedLimits;
4282
+ /**
4283
+ * 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.
4284
+ *
4285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
4286
+ */
4287
+ requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
4288
+ }
4289
+
4290
+ declare var GPUAdapter: {
4291
+ prototype: GPUAdapter;
4292
+ new(): GPUAdapter;
4293
+ };
4294
+
4093
4295
  /**
4094
4296
  * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4095
4297
  * Available only in secure contexts.
@@ -4543,6 +4745,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4543
4745
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
4544
4746
  */
4545
4747
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
4748
+ /**
4749
+ * 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.
4750
+ *
4751
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
4752
+ */
4753
+ createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
4546
4754
  /**
4547
4755
  * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
4548
4756
  *
@@ -4585,6 +4793,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4585
4793
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
4586
4794
  */
4587
4795
  createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
4796
+ /**
4797
+ * 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.
4798
+ *
4799
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
4800
+ */
4801
+ createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
4802
+ /**
4803
+ * 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.
4804
+ *
4805
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
4806
+ */
4807
+ createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
4588
4808
  /**
4589
4809
  * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
4590
4810
  *
@@ -6300,6 +6520,15 @@ interface NavigatorConcurrentHardware {
6300
6520
  readonly hardwareConcurrency: number;
6301
6521
  }
6302
6522
 
6523
+ interface NavigatorGPU {
6524
+ /**
6525
+ * Available only in secure contexts.
6526
+ *
6527
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
6528
+ */
6529
+ readonly gpu: GPU;
6530
+ }
6531
+
6303
6532
  interface NavigatorID {
6304
6533
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
6305
6534
  readonly appCodeName: string;
@@ -11832,7 +12061,7 @@ declare var WorkerLocation: {
11832
12061
  *
11833
12062
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
11834
12063
  */
11835
- interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
12064
+ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
11836
12065
  /**
11837
12066
  * The read-only **`mediaCapabilities`** property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).
11838
12067
  *
@@ -12788,7 +13017,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
12788
13017
  type GPUBufferDynamicOffset = number;
12789
13018
  type GPUBufferUsageFlags = number;
12790
13019
  type GPUColor = number[] | GPUColorDict;
13020
+ type GPUColorWriteFlags = number;
12791
13021
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
13022
+ type GPUDepthBias = number;
12792
13023
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
12793
13024
  type GPUFlagsConstant = number;
12794
13025
  type GPUIndex32 = number;
@@ -12798,6 +13029,8 @@ type GPUMapModeFlags = number;
12798
13029
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
12799
13030
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
12800
13031
  type GPUPipelineConstantValue = number;
13032
+ type GPUSampleMask = number;
13033
+ type GPUShaderStageFlags = number;
12801
13034
  type GPUSignedOffset32 = number;
12802
13035
  type GPUSize32 = number;
12803
13036
  type GPUSize32Out = number;
@@ -12851,24 +13084,38 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
12851
13084
  type FontFaceSetLoadStatus = "loaded" | "loading";
12852
13085
  type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
12853
13086
  type GPUAutoLayoutMode = "auto";
13087
+ 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";
13088
+ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
13089
+ type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
12854
13090
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
12855
13091
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
12856
13092
  type GPUCanvasToneMappingMode = "extended" | "standard";
12857
13093
  type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
12858
13094
  type GPUCompilationMessageType = "error" | "info" | "warning";
13095
+ type GPUCullMode = "back" | "front" | "none";
12859
13096
  type GPUDeviceLostReason = "destroyed" | "unknown";
12860
13097
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
13098
+ 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";
12861
13099
  type GPUFilterMode = "linear" | "nearest";
13100
+ type GPUFrontFace = "ccw" | "cw";
12862
13101
  type GPUIndexFormat = "uint16" | "uint32";
12863
13102
  type GPULoadOp = "clear" | "load";
12864
13103
  type GPUMipmapFilterMode = "linear" | "nearest";
12865
13104
  type GPUPipelineErrorReason = "internal" | "validation";
13105
+ type GPUPowerPreference = "high-performance" | "low-power";
13106
+ type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
12866
13107
  type GPUQueryType = "occlusion" | "timestamp";
13108
+ type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
13109
+ type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
13110
+ type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
12867
13111
  type GPUStoreOp = "discard" | "store";
12868
13112
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12869
13113
  type GPUTextureDimension = "1d" | "2d" | "3d";
12870
13114
  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";
13115
+ type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
12871
13116
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13117
+ 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";
13118
+ type GPUVertexStepMode = "instance" | "vertex";
12872
13119
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
12873
13120
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
12874
13121
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],