@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 +1 -1
- package/index.d.ts +248 -14
- package/package.json +1 -1
- package/ts5.5/index.d.ts +248 -14
- package/ts5.6/index.d.ts +248 -14
- package/ts5.9/index.d.ts +248 -14
package/ts5.5/index.d.ts
CHANGED
|
@@ -372,12 +372,43 @@ interface GPUBindGroupEntry {
|
|
|
372
372
|
resource: GPUBindingResource;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
376
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
interface GPUBindGroupLayoutEntry {
|
|
380
|
+
binding: GPUIndex32;
|
|
381
|
+
buffer?: GPUBufferBindingLayout;
|
|
382
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
383
|
+
sampler?: GPUSamplerBindingLayout;
|
|
384
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
385
|
+
texture?: GPUTextureBindingLayout;
|
|
386
|
+
visibility: GPUShaderStageFlags;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
interface GPUBlendComponent {
|
|
390
|
+
dstFactor?: GPUBlendFactor;
|
|
391
|
+
operation?: GPUBlendOperation;
|
|
392
|
+
srcFactor?: GPUBlendFactor;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
interface GPUBlendState {
|
|
396
|
+
alpha: GPUBlendComponent;
|
|
397
|
+
color: GPUBlendComponent;
|
|
398
|
+
}
|
|
399
|
+
|
|
375
400
|
interface GPUBufferBinding {
|
|
376
401
|
buffer: GPUBuffer;
|
|
377
402
|
offset?: GPUSize64;
|
|
378
403
|
size?: GPUSize64;
|
|
379
404
|
}
|
|
380
405
|
|
|
406
|
+
interface GPUBufferBindingLayout {
|
|
407
|
+
hasDynamicOffset?: boolean;
|
|
408
|
+
minBindingSize?: GPUSize64;
|
|
409
|
+
type?: GPUBufferBindingType;
|
|
410
|
+
}
|
|
411
|
+
|
|
381
412
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
382
413
|
mappedAtCreation?: boolean;
|
|
383
414
|
size: GPUSize64;
|
|
@@ -405,6 +436,12 @@ interface GPUColorDict {
|
|
|
405
436
|
r: number;
|
|
406
437
|
}
|
|
407
438
|
|
|
439
|
+
interface GPUColorTargetState {
|
|
440
|
+
blend?: GPUBlendState;
|
|
441
|
+
format: GPUTextureFormat;
|
|
442
|
+
writeMask?: GPUColorWriteFlags;
|
|
443
|
+
}
|
|
444
|
+
|
|
408
445
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
409
446
|
}
|
|
410
447
|
|
|
@@ -436,17 +473,49 @@ interface GPUCopyExternalImageSourceInfo {
|
|
|
436
473
|
source: GPUCopyExternalImageSource;
|
|
437
474
|
}
|
|
438
475
|
|
|
476
|
+
interface GPUDepthStencilState {
|
|
477
|
+
depthBias?: GPUDepthBias;
|
|
478
|
+
depthBiasClamp?: number;
|
|
479
|
+
depthBiasSlopeScale?: number;
|
|
480
|
+
depthCompare?: GPUCompareFunction;
|
|
481
|
+
depthWriteEnabled?: boolean;
|
|
482
|
+
format: GPUTextureFormat;
|
|
483
|
+
stencilBack?: GPUStencilFaceState;
|
|
484
|
+
stencilFront?: GPUStencilFaceState;
|
|
485
|
+
stencilReadMask?: GPUStencilValue;
|
|
486
|
+
stencilWriteMask?: GPUStencilValue;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
490
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
491
|
+
requiredFeatures?: GPUFeatureName[];
|
|
492
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
493
|
+
}
|
|
494
|
+
|
|
439
495
|
interface GPUExtent3DDict {
|
|
440
496
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
441
497
|
height?: GPUIntegerCoordinate;
|
|
442
498
|
width: GPUIntegerCoordinate;
|
|
443
499
|
}
|
|
444
500
|
|
|
501
|
+
interface GPUExternalTextureBindingLayout {
|
|
502
|
+
}
|
|
503
|
+
|
|
445
504
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
446
505
|
colorSpace?: PredefinedColorSpace;
|
|
447
506
|
source: VideoFrame;
|
|
448
507
|
}
|
|
449
508
|
|
|
509
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
510
|
+
targets: (GPUColorTargetState | null)[];
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
interface GPUMultisampleState {
|
|
514
|
+
alphaToCoverageEnabled?: boolean;
|
|
515
|
+
count?: GPUSize32;
|
|
516
|
+
mask?: GPUSampleMask;
|
|
517
|
+
}
|
|
518
|
+
|
|
450
519
|
interface GPUObjectDescriptorBase {
|
|
451
520
|
label?: string;
|
|
452
521
|
}
|
|
@@ -474,6 +543,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
|
474
543
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
475
544
|
}
|
|
476
545
|
|
|
546
|
+
interface GPUPrimitiveState {
|
|
547
|
+
cullMode?: GPUCullMode;
|
|
548
|
+
frontFace?: GPUFrontFace;
|
|
549
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
550
|
+
topology?: GPUPrimitiveTopology;
|
|
551
|
+
unclippedDepth?: boolean;
|
|
552
|
+
}
|
|
553
|
+
|
|
477
554
|
interface GPUProgrammableStage {
|
|
478
555
|
constants?: Record<string, GPUPipelineConstantValue>;
|
|
479
556
|
entryPoint?: string;
|
|
@@ -485,6 +562,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
485
562
|
type: GPUQueryType;
|
|
486
563
|
}
|
|
487
564
|
|
|
565
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
566
|
+
}
|
|
567
|
+
|
|
488
568
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
489
569
|
}
|
|
490
570
|
|
|
@@ -534,6 +614,23 @@ interface GPURenderPassTimestampWrites {
|
|
|
534
614
|
querySet: GPUQuerySet;
|
|
535
615
|
}
|
|
536
616
|
|
|
617
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
618
|
+
depthStencil?: GPUDepthStencilState;
|
|
619
|
+
fragment?: GPUFragmentState;
|
|
620
|
+
multisample?: GPUMultisampleState;
|
|
621
|
+
primitive?: GPUPrimitiveState;
|
|
622
|
+
vertex: GPUVertexState;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
interface GPURequestAdapterOptions {
|
|
626
|
+
forceFallbackAdapter?: boolean;
|
|
627
|
+
powerPreference?: GPUPowerPreference;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
interface GPUSamplerBindingLayout {
|
|
631
|
+
type?: GPUSamplerBindingType;
|
|
632
|
+
}
|
|
633
|
+
|
|
537
634
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
538
635
|
addressModeU?: GPUAddressMode;
|
|
539
636
|
addressModeV?: GPUAddressMode;
|
|
@@ -551,6 +648,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
|
551
648
|
code: string;
|
|
552
649
|
}
|
|
553
650
|
|
|
651
|
+
interface GPUStencilFaceState {
|
|
652
|
+
compare?: GPUCompareFunction;
|
|
653
|
+
depthFailOp?: GPUStencilOperation;
|
|
654
|
+
failOp?: GPUStencilOperation;
|
|
655
|
+
passOp?: GPUStencilOperation;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
interface GPUStorageTextureBindingLayout {
|
|
659
|
+
access?: GPUStorageTextureAccess;
|
|
660
|
+
format: GPUTextureFormat;
|
|
661
|
+
viewDimension?: GPUTextureViewDimension;
|
|
662
|
+
}
|
|
663
|
+
|
|
554
664
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
555
665
|
buffer: GPUBuffer;
|
|
556
666
|
}
|
|
@@ -568,6 +678,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
568
678
|
texture: GPUTexture;
|
|
569
679
|
}
|
|
570
680
|
|
|
681
|
+
interface GPUTextureBindingLayout {
|
|
682
|
+
multisampled?: boolean;
|
|
683
|
+
sampleType?: GPUTextureSampleType;
|
|
684
|
+
viewDimension?: GPUTextureViewDimension;
|
|
685
|
+
}
|
|
686
|
+
|
|
571
687
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
572
688
|
dimension?: GPUTextureDimension;
|
|
573
689
|
format: GPUTextureFormat;
|
|
@@ -593,6 +709,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
593
709
|
error: GPUError;
|
|
594
710
|
}
|
|
595
711
|
|
|
712
|
+
interface GPUVertexAttribute {
|
|
713
|
+
format: GPUVertexFormat;
|
|
714
|
+
offset: GPUSize64;
|
|
715
|
+
shaderLocation: GPUIndex32;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
interface GPUVertexBufferLayout {
|
|
719
|
+
arrayStride: GPUSize64;
|
|
720
|
+
attributes: GPUVertexAttribute[];
|
|
721
|
+
stepMode?: GPUVertexStepMode;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
725
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
726
|
+
}
|
|
727
|
+
|
|
596
728
|
interface GetNotificationOptions {
|
|
597
729
|
tag?: string;
|
|
598
730
|
}
|
|
@@ -5107,6 +5239,76 @@ declare var FormData: {
|
|
|
5107
5239
|
new(): FormData;
|
|
5108
5240
|
};
|
|
5109
5241
|
|
|
5242
|
+
/**
|
|
5243
|
+
* 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.
|
|
5244
|
+
* Available only in secure contexts.
|
|
5245
|
+
*
|
|
5246
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
5247
|
+
*/
|
|
5248
|
+
interface GPU {
|
|
5249
|
+
/**
|
|
5250
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
5251
|
+
*
|
|
5252
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
5253
|
+
*/
|
|
5254
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
5255
|
+
/**
|
|
5256
|
+
* 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.
|
|
5257
|
+
*
|
|
5258
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
5259
|
+
*/
|
|
5260
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
5261
|
+
/**
|
|
5262
|
+
* 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.
|
|
5263
|
+
*
|
|
5264
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
5265
|
+
*/
|
|
5266
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
declare var GPU: {
|
|
5270
|
+
prototype: GPU;
|
|
5271
|
+
new(): GPU;
|
|
5272
|
+
};
|
|
5273
|
+
|
|
5274
|
+
/**
|
|
5275
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
5276
|
+
* Available only in secure contexts.
|
|
5277
|
+
*
|
|
5278
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
5279
|
+
*/
|
|
5280
|
+
interface GPUAdapter {
|
|
5281
|
+
/**
|
|
5282
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
5283
|
+
*
|
|
5284
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
5285
|
+
*/
|
|
5286
|
+
readonly features: GPUSupportedFeatures;
|
|
5287
|
+
/**
|
|
5288
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
5289
|
+
*
|
|
5290
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
5291
|
+
*/
|
|
5292
|
+
readonly info: GPUAdapterInfo;
|
|
5293
|
+
/**
|
|
5294
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
5295
|
+
*
|
|
5296
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
5297
|
+
*/
|
|
5298
|
+
readonly limits: GPUSupportedLimits;
|
|
5299
|
+
/**
|
|
5300
|
+
* 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.
|
|
5301
|
+
*
|
|
5302
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
5303
|
+
*/
|
|
5304
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
declare var GPUAdapter: {
|
|
5308
|
+
prototype: GPUAdapter;
|
|
5309
|
+
new(): GPUAdapter;
|
|
5310
|
+
};
|
|
5311
|
+
|
|
5110
5312
|
/**
|
|
5111
5313
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
5112
5314
|
* Available only in secure contexts.
|
|
@@ -5560,6 +5762,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5560
5762
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
5561
5763
|
*/
|
|
5562
5764
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5765
|
+
/**
|
|
5766
|
+
* 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.
|
|
5767
|
+
*
|
|
5768
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
5769
|
+
*/
|
|
5770
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
5563
5771
|
/**
|
|
5564
5772
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
5565
5773
|
*
|
|
@@ -5602,6 +5810,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5602
5810
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
5603
5811
|
*/
|
|
5604
5812
|
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5813
|
+
/**
|
|
5814
|
+
* 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.
|
|
5815
|
+
*
|
|
5816
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
5817
|
+
*/
|
|
5818
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
5819
|
+
/**
|
|
5820
|
+
* 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.
|
|
5821
|
+
*
|
|
5822
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
5823
|
+
*/
|
|
5824
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
5605
5825
|
/**
|
|
5606
5826
|
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
5607
5827
|
*
|
|
@@ -7191,19 +7411,6 @@ interface ImportMeta {
|
|
|
7191
7411
|
resolve(specifier: string): string;
|
|
7192
7412
|
}
|
|
7193
7413
|
|
|
7194
|
-
/**
|
|
7195
|
-
* 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.
|
|
7196
|
-
*
|
|
7197
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
7198
|
-
*/
|
|
7199
|
-
interface InstallEvent extends ExtendableEvent {
|
|
7200
|
-
}
|
|
7201
|
-
|
|
7202
|
-
declare var InstallEvent: {
|
|
7203
|
-
prototype: InstallEvent;
|
|
7204
|
-
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
7205
|
-
};
|
|
7206
|
-
|
|
7207
7414
|
/**
|
|
7208
7415
|
* 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.
|
|
7209
7416
|
*
|
|
@@ -7501,6 +7708,15 @@ interface NavigatorConcurrentHardware {
|
|
|
7501
7708
|
readonly hardwareConcurrency: number;
|
|
7502
7709
|
}
|
|
7503
7710
|
|
|
7711
|
+
interface NavigatorGPU {
|
|
7712
|
+
/**
|
|
7713
|
+
* Available only in secure contexts.
|
|
7714
|
+
*
|
|
7715
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
7716
|
+
*/
|
|
7717
|
+
readonly gpu: GPU;
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7504
7720
|
interface NavigatorID {
|
|
7505
7721
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
7506
7722
|
readonly appCodeName: string;
|
|
@@ -13791,7 +14007,7 @@ declare var WorkerLocation: {
|
|
|
13791
14007
|
*
|
|
13792
14008
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
13793
14009
|
*/
|
|
13794
|
-
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
14010
|
+
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
13795
14011
|
/**
|
|
13796
14012
|
* 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).
|
|
13797
14013
|
*
|
|
@@ -14787,7 +15003,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
|
|
|
14787
15003
|
type GPUBufferDynamicOffset = number;
|
|
14788
15004
|
type GPUBufferUsageFlags = number;
|
|
14789
15005
|
type GPUColor = number[] | GPUColorDict;
|
|
15006
|
+
type GPUColorWriteFlags = number;
|
|
14790
15007
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
|
|
15008
|
+
type GPUDepthBias = number;
|
|
14791
15009
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
14792
15010
|
type GPUFlagsConstant = number;
|
|
14793
15011
|
type GPUIndex32 = number;
|
|
@@ -14797,6 +15015,8 @@ type GPUMapModeFlags = number;
|
|
|
14797
15015
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
14798
15016
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
14799
15017
|
type GPUPipelineConstantValue = number;
|
|
15018
|
+
type GPUSampleMask = number;
|
|
15019
|
+
type GPUShaderStageFlags = number;
|
|
14800
15020
|
type GPUSignedOffset32 = number;
|
|
14801
15021
|
type GPUSize32 = number;
|
|
14802
15022
|
type GPUSize32Out = number;
|
|
@@ -14863,24 +15083,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
14863
15083
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14864
15084
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
14865
15085
|
type GPUAutoLayoutMode = "auto";
|
|
15086
|
+
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";
|
|
15087
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
15088
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
14866
15089
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14867
15090
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
14868
15091
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
14869
15092
|
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
14870
15093
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
15094
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
14871
15095
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14872
15096
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
15097
|
+
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";
|
|
14873
15098
|
type GPUFilterMode = "linear" | "nearest";
|
|
15099
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
14874
15100
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
14875
15101
|
type GPULoadOp = "clear" | "load";
|
|
14876
15102
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
14877
15103
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
15104
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
15105
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
14878
15106
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
15107
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
15108
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
15109
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
14879
15110
|
type GPUStoreOp = "discard" | "store";
|
|
14880
15111
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
14881
15112
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
14882
15113
|
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";
|
|
15114
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
14883
15115
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15116
|
+
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";
|
|
15117
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
14884
15118
|
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";
|
|
14885
15119
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
|
14886
15120
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|