@types/webworker 0.0.68 → 0.0.70

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
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.68 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.68.
48
+ You can read what changed in version 0.0.70 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.70.
package/index.d.ts CHANGED
@@ -375,12 +375,43 @@ interface GPUBindGroupEntry {
375
375
  resource: GPUBindingResource;
376
376
  }
377
377
 
378
+ interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
379
+ entries: GPUBindGroupLayoutEntry[];
380
+ }
381
+
382
+ interface GPUBindGroupLayoutEntry {
383
+ binding: GPUIndex32;
384
+ buffer?: GPUBufferBindingLayout;
385
+ externalTexture?: GPUExternalTextureBindingLayout;
386
+ sampler?: GPUSamplerBindingLayout;
387
+ storageTexture?: GPUStorageTextureBindingLayout;
388
+ texture?: GPUTextureBindingLayout;
389
+ visibility: GPUShaderStageFlags;
390
+ }
391
+
392
+ interface GPUBlendComponent {
393
+ dstFactor?: GPUBlendFactor;
394
+ operation?: GPUBlendOperation;
395
+ srcFactor?: GPUBlendFactor;
396
+ }
397
+
398
+ interface GPUBlendState {
399
+ alpha: GPUBlendComponent;
400
+ color: GPUBlendComponent;
401
+ }
402
+
378
403
  interface GPUBufferBinding {
379
404
  buffer: GPUBuffer;
380
405
  offset?: GPUSize64;
381
406
  size?: GPUSize64;
382
407
  }
383
408
 
409
+ interface GPUBufferBindingLayout {
410
+ hasDynamicOffset?: boolean;
411
+ minBindingSize?: GPUSize64;
412
+ type?: GPUBufferBindingType;
413
+ }
414
+
384
415
  interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
385
416
  mappedAtCreation?: boolean;
386
417
  size: GPUSize64;
@@ -408,6 +439,12 @@ interface GPUColorDict {
408
439
  r: number;
409
440
  }
410
441
 
442
+ interface GPUColorTargetState {
443
+ blend?: GPUBlendState;
444
+ format: GPUTextureFormat;
445
+ writeMask?: GPUColorWriteFlags;
446
+ }
447
+
411
448
  interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
412
449
  }
413
450
 
@@ -439,17 +476,49 @@ interface GPUCopyExternalImageSourceInfo {
439
476
  source: GPUCopyExternalImageSource;
440
477
  }
441
478
 
479
+ interface GPUDepthStencilState {
480
+ depthBias?: GPUDepthBias;
481
+ depthBiasClamp?: number;
482
+ depthBiasSlopeScale?: number;
483
+ depthCompare?: GPUCompareFunction;
484
+ depthWriteEnabled?: boolean;
485
+ format: GPUTextureFormat;
486
+ stencilBack?: GPUStencilFaceState;
487
+ stencilFront?: GPUStencilFaceState;
488
+ stencilReadMask?: GPUStencilValue;
489
+ stencilWriteMask?: GPUStencilValue;
490
+ }
491
+
492
+ interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
493
+ defaultQueue?: GPUQueueDescriptor;
494
+ requiredFeatures?: GPUFeatureName[];
495
+ requiredLimits?: Record<string, GPUSize64 | undefined>;
496
+ }
497
+
442
498
  interface GPUExtent3DDict {
443
499
  depthOrArrayLayers?: GPUIntegerCoordinate;
444
500
  height?: GPUIntegerCoordinate;
445
501
  width: GPUIntegerCoordinate;
446
502
  }
447
503
 
504
+ interface GPUExternalTextureBindingLayout {
505
+ }
506
+
448
507
  interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
449
508
  colorSpace?: PredefinedColorSpace;
450
509
  source: VideoFrame;
451
510
  }
452
511
 
512
+ interface GPUFragmentState extends GPUProgrammableStage {
513
+ targets: (GPUColorTargetState | null)[];
514
+ }
515
+
516
+ interface GPUMultisampleState {
517
+ alphaToCoverageEnabled?: boolean;
518
+ count?: GPUSize32;
519
+ mask?: GPUSampleMask;
520
+ }
521
+
453
522
  interface GPUObjectDescriptorBase {
454
523
  label?: string;
455
524
  }
@@ -477,6 +546,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
477
546
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
478
547
  }
479
548
 
549
+ interface GPUPrimitiveState {
550
+ cullMode?: GPUCullMode;
551
+ frontFace?: GPUFrontFace;
552
+ stripIndexFormat?: GPUIndexFormat;
553
+ topology?: GPUPrimitiveTopology;
554
+ unclippedDepth?: boolean;
555
+ }
556
+
480
557
  interface GPUProgrammableStage {
481
558
  constants?: Record<string, GPUPipelineConstantValue>;
482
559
  entryPoint?: string;
@@ -488,6 +565,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
488
565
  type: GPUQueryType;
489
566
  }
490
567
 
568
+ interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
569
+ }
570
+
491
571
  interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
492
572
  }
493
573
 
@@ -537,6 +617,23 @@ interface GPURenderPassTimestampWrites {
537
617
  querySet: GPUQuerySet;
538
618
  }
539
619
 
620
+ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
621
+ depthStencil?: GPUDepthStencilState;
622
+ fragment?: GPUFragmentState;
623
+ multisample?: GPUMultisampleState;
624
+ primitive?: GPUPrimitiveState;
625
+ vertex: GPUVertexState;
626
+ }
627
+
628
+ interface GPURequestAdapterOptions {
629
+ forceFallbackAdapter?: boolean;
630
+ powerPreference?: GPUPowerPreference;
631
+ }
632
+
633
+ interface GPUSamplerBindingLayout {
634
+ type?: GPUSamplerBindingType;
635
+ }
636
+
540
637
  interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
541
638
  addressModeU?: GPUAddressMode;
542
639
  addressModeV?: GPUAddressMode;
@@ -554,6 +651,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
554
651
  code: string;
555
652
  }
556
653
 
654
+ interface GPUStencilFaceState {
655
+ compare?: GPUCompareFunction;
656
+ depthFailOp?: GPUStencilOperation;
657
+ failOp?: GPUStencilOperation;
658
+ passOp?: GPUStencilOperation;
659
+ }
660
+
661
+ interface GPUStorageTextureBindingLayout {
662
+ access?: GPUStorageTextureAccess;
663
+ format: GPUTextureFormat;
664
+ viewDimension?: GPUTextureViewDimension;
665
+ }
666
+
557
667
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
558
668
  buffer: GPUBuffer;
559
669
  }
@@ -571,6 +681,12 @@ interface GPUTexelCopyTextureInfo {
571
681
  texture: GPUTexture;
572
682
  }
573
683
 
684
+ interface GPUTextureBindingLayout {
685
+ multisampled?: boolean;
686
+ sampleType?: GPUTextureSampleType;
687
+ viewDimension?: GPUTextureViewDimension;
688
+ }
689
+
574
690
  interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
575
691
  dimension?: GPUTextureDimension;
576
692
  format: GPUTextureFormat;
@@ -596,6 +712,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
596
712
  error: GPUError;
597
713
  }
598
714
 
715
+ interface GPUVertexAttribute {
716
+ format: GPUVertexFormat;
717
+ offset: GPUSize64;
718
+ shaderLocation: GPUIndex32;
719
+ }
720
+
721
+ interface GPUVertexBufferLayout {
722
+ arrayStride: GPUSize64;
723
+ attributes: GPUVertexAttribute[];
724
+ stepMode?: GPUVertexStepMode;
725
+ }
726
+
727
+ interface GPUVertexState extends GPUProgrammableStage {
728
+ buffers?: (GPUVertexBufferLayout | null)[];
729
+ }
730
+
599
731
  interface GetNotificationOptions {
600
732
  tag?: string;
601
733
  }
@@ -5110,6 +5242,76 @@ declare var FormData: {
5110
5242
  new(): FormData;
5111
5243
  };
5112
5244
 
5245
+ /**
5246
+ * 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.
5247
+ * Available only in secure contexts.
5248
+ *
5249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
5250
+ */
5251
+ interface GPU {
5252
+ /**
5253
+ * The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
5254
+ *
5255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
5256
+ */
5257
+ readonly wgslLanguageFeatures: WGSLLanguageFeatures;
5258
+ /**
5259
+ * 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.
5260
+ *
5261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
5262
+ */
5263
+ getPreferredCanvasFormat(): GPUTextureFormat;
5264
+ /**
5265
+ * 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.
5266
+ *
5267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
5268
+ */
5269
+ requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
5270
+ }
5271
+
5272
+ declare var GPU: {
5273
+ prototype: GPU;
5274
+ new(): GPU;
5275
+ };
5276
+
5277
+ /**
5278
+ * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
5279
+ * Available only in secure contexts.
5280
+ *
5281
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
5282
+ */
5283
+ interface GPUAdapter {
5284
+ /**
5285
+ * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
5286
+ *
5287
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
5288
+ */
5289
+ readonly features: GPUSupportedFeatures;
5290
+ /**
5291
+ * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
5292
+ *
5293
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
5294
+ */
5295
+ readonly info: GPUAdapterInfo;
5296
+ /**
5297
+ * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
5298
+ *
5299
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
5300
+ */
5301
+ readonly limits: GPUSupportedLimits;
5302
+ /**
5303
+ * 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.
5304
+ *
5305
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
5306
+ */
5307
+ requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
5308
+ }
5309
+
5310
+ declare var GPUAdapter: {
5311
+ prototype: GPUAdapter;
5312
+ new(): GPUAdapter;
5313
+ };
5314
+
5113
5315
  /**
5114
5316
  * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
5115
5317
  * Available only in secure contexts.
@@ -5563,6 +5765,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5563
5765
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
5564
5766
  */
5565
5767
  createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
5768
+ /**
5769
+ * 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.
5770
+ *
5771
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
5772
+ */
5773
+ createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
5566
5774
  /**
5567
5775
  * The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
5568
5776
  *
@@ -5605,6 +5813,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
5605
5813
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
5606
5814
  */
5607
5815
  createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
5816
+ /**
5817
+ * 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.
5818
+ *
5819
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
5820
+ */
5821
+ createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
5822
+ /**
5823
+ * 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.
5824
+ *
5825
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
5826
+ */
5827
+ createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
5608
5828
  /**
5609
5829
  * The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
5610
5830
  *
@@ -7194,19 +7414,6 @@ interface ImportMeta {
7194
7414
  resolve(specifier: string): string;
7195
7415
  }
7196
7416
 
7197
- /**
7198
- * The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
7199
- *
7200
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
7201
- */
7202
- interface InstallEvent extends ExtendableEvent {
7203
- }
7204
-
7205
- declare var InstallEvent: {
7206
- prototype: InstallEvent;
7207
- new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
7208
- };
7209
-
7210
7417
  /**
7211
7418
  * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
7212
7419
  *
@@ -7504,6 +7711,15 @@ interface NavigatorConcurrentHardware {
7504
7711
  readonly hardwareConcurrency: number;
7505
7712
  }
7506
7713
 
7714
+ interface NavigatorGPU {
7715
+ /**
7716
+ * Available only in secure contexts.
7717
+ *
7718
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
7719
+ */
7720
+ readonly gpu: GPU;
7721
+ }
7722
+
7507
7723
  interface NavigatorID {
7508
7724
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
7509
7725
  readonly appCodeName: string;
@@ -13794,7 +14010,7 @@ declare var WorkerLocation: {
13794
14010
  *
13795
14011
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
13796
14012
  */
13797
- interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
14013
+ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
13798
14014
  /**
13799
14015
  * 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).
13800
14016
  *
@@ -14790,7 +15006,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
14790
15006
  type GPUBufferDynamicOffset = number;
14791
15007
  type GPUBufferUsageFlags = number;
14792
15008
  type GPUColor = number[] | GPUColorDict;
15009
+ type GPUColorWriteFlags = number;
14793
15010
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
15011
+ type GPUDepthBias = number;
14794
15012
  type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
14795
15013
  type GPUFlagsConstant = number;
14796
15014
  type GPUIndex32 = number;
@@ -14800,6 +15018,8 @@ type GPUMapModeFlags = number;
14800
15018
  type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
14801
15019
  type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
14802
15020
  type GPUPipelineConstantValue = number;
15021
+ type GPUSampleMask = number;
15022
+ type GPUShaderStageFlags = number;
14803
15023
  type GPUSignedOffset32 = number;
14804
15024
  type GPUSize32 = number;
14805
15025
  type GPUSize32Out = number;
@@ -14866,24 +15086,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
14866
15086
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
14867
15087
  type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
14868
15088
  type GPUAutoLayoutMode = "auto";
15089
+ 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";
15090
+ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
15091
+ type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
14869
15092
  type GPUBufferMapState = "mapped" | "pending" | "unmapped";
14870
15093
  type GPUCanvasAlphaMode = "opaque" | "premultiplied";
14871
15094
  type GPUCanvasToneMappingMode = "extended" | "standard";
14872
15095
  type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
14873
15096
  type GPUCompilationMessageType = "error" | "info" | "warning";
15097
+ type GPUCullMode = "back" | "front" | "none";
14874
15098
  type GPUDeviceLostReason = "destroyed" | "unknown";
14875
15099
  type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
15100
+ 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";
14876
15101
  type GPUFilterMode = "linear" | "nearest";
15102
+ type GPUFrontFace = "ccw" | "cw";
14877
15103
  type GPUIndexFormat = "uint16" | "uint32";
14878
15104
  type GPULoadOp = "clear" | "load";
14879
15105
  type GPUMipmapFilterMode = "linear" | "nearest";
14880
15106
  type GPUPipelineErrorReason = "internal" | "validation";
15107
+ type GPUPowerPreference = "high-performance" | "low-power";
15108
+ type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
14881
15109
  type GPUQueryType = "occlusion" | "timestamp";
15110
+ type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
15111
+ type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
15112
+ type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
14882
15113
  type GPUStoreOp = "discard" | "store";
14883
15114
  type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
14884
15115
  type GPUTextureDimension = "1d" | "2d" | "3d";
14885
15116
  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";
15117
+ type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
14886
15118
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
15119
+ 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";
15120
+ type GPUVertexStepMode = "instance" | "vertex";
14887
15121
  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";
14888
15122
  type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
14889
15123
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],