@types/serviceworker 0.0.189 → 0.0.191
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.9/index.d.ts
CHANGED
|
@@ -282,12 +282,43 @@ interface GPUBindGroupEntry {
|
|
|
282
282
|
resource: GPUBindingResource;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
286
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface GPUBindGroupLayoutEntry {
|
|
290
|
+
binding: GPUIndex32;
|
|
291
|
+
buffer?: GPUBufferBindingLayout;
|
|
292
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
293
|
+
sampler?: GPUSamplerBindingLayout;
|
|
294
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
295
|
+
texture?: GPUTextureBindingLayout;
|
|
296
|
+
visibility: GPUShaderStageFlags;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface GPUBlendComponent {
|
|
300
|
+
dstFactor?: GPUBlendFactor;
|
|
301
|
+
operation?: GPUBlendOperation;
|
|
302
|
+
srcFactor?: GPUBlendFactor;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
interface GPUBlendState {
|
|
306
|
+
alpha: GPUBlendComponent;
|
|
307
|
+
color: GPUBlendComponent;
|
|
308
|
+
}
|
|
309
|
+
|
|
285
310
|
interface GPUBufferBinding {
|
|
286
311
|
buffer: GPUBuffer;
|
|
287
312
|
offset?: GPUSize64;
|
|
288
313
|
size?: GPUSize64;
|
|
289
314
|
}
|
|
290
315
|
|
|
316
|
+
interface GPUBufferBindingLayout {
|
|
317
|
+
hasDynamicOffset?: boolean;
|
|
318
|
+
minBindingSize?: GPUSize64;
|
|
319
|
+
type?: GPUBufferBindingType;
|
|
320
|
+
}
|
|
321
|
+
|
|
291
322
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
292
323
|
mappedAtCreation?: boolean;
|
|
293
324
|
size: GPUSize64;
|
|
@@ -315,6 +346,12 @@ interface GPUColorDict {
|
|
|
315
346
|
r: number;
|
|
316
347
|
}
|
|
317
348
|
|
|
349
|
+
interface GPUColorTargetState {
|
|
350
|
+
blend?: GPUBlendState;
|
|
351
|
+
format: GPUTextureFormat;
|
|
352
|
+
writeMask?: GPUColorWriteFlags;
|
|
353
|
+
}
|
|
354
|
+
|
|
318
355
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
319
356
|
}
|
|
320
357
|
|
|
@@ -346,16 +383,48 @@ interface GPUCopyExternalImageSourceInfo {
|
|
|
346
383
|
source: GPUCopyExternalImageSource;
|
|
347
384
|
}
|
|
348
385
|
|
|
386
|
+
interface GPUDepthStencilState {
|
|
387
|
+
depthBias?: GPUDepthBias;
|
|
388
|
+
depthBiasClamp?: number;
|
|
389
|
+
depthBiasSlopeScale?: number;
|
|
390
|
+
depthCompare?: GPUCompareFunction;
|
|
391
|
+
depthWriteEnabled?: boolean;
|
|
392
|
+
format: GPUTextureFormat;
|
|
393
|
+
stencilBack?: GPUStencilFaceState;
|
|
394
|
+
stencilFront?: GPUStencilFaceState;
|
|
395
|
+
stencilReadMask?: GPUStencilValue;
|
|
396
|
+
stencilWriteMask?: GPUStencilValue;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
400
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
401
|
+
requiredFeatures?: GPUFeatureName[];
|
|
402
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
403
|
+
}
|
|
404
|
+
|
|
349
405
|
interface GPUExtent3DDict {
|
|
350
406
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
351
407
|
height?: GPUIntegerCoordinate;
|
|
352
408
|
width: GPUIntegerCoordinate;
|
|
353
409
|
}
|
|
354
410
|
|
|
411
|
+
interface GPUExternalTextureBindingLayout {
|
|
412
|
+
}
|
|
413
|
+
|
|
355
414
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
356
415
|
colorSpace?: PredefinedColorSpace;
|
|
357
416
|
}
|
|
358
417
|
|
|
418
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
419
|
+
targets: (GPUColorTargetState | null)[];
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
interface GPUMultisampleState {
|
|
423
|
+
alphaToCoverageEnabled?: boolean;
|
|
424
|
+
count?: GPUSize32;
|
|
425
|
+
mask?: GPUSampleMask;
|
|
426
|
+
}
|
|
427
|
+
|
|
359
428
|
interface GPUObjectDescriptorBase {
|
|
360
429
|
label?: string;
|
|
361
430
|
}
|
|
@@ -383,6 +452,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
|
383
452
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
384
453
|
}
|
|
385
454
|
|
|
455
|
+
interface GPUPrimitiveState {
|
|
456
|
+
cullMode?: GPUCullMode;
|
|
457
|
+
frontFace?: GPUFrontFace;
|
|
458
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
459
|
+
topology?: GPUPrimitiveTopology;
|
|
460
|
+
unclippedDepth?: boolean;
|
|
461
|
+
}
|
|
462
|
+
|
|
386
463
|
interface GPUProgrammableStage {
|
|
387
464
|
constants?: Record<string, GPUPipelineConstantValue>;
|
|
388
465
|
entryPoint?: string;
|
|
@@ -394,6 +471,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
394
471
|
type: GPUQueryType;
|
|
395
472
|
}
|
|
396
473
|
|
|
474
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
475
|
+
}
|
|
476
|
+
|
|
397
477
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
398
478
|
}
|
|
399
479
|
|
|
@@ -443,6 +523,23 @@ interface GPURenderPassTimestampWrites {
|
|
|
443
523
|
querySet: GPUQuerySet;
|
|
444
524
|
}
|
|
445
525
|
|
|
526
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
527
|
+
depthStencil?: GPUDepthStencilState;
|
|
528
|
+
fragment?: GPUFragmentState;
|
|
529
|
+
multisample?: GPUMultisampleState;
|
|
530
|
+
primitive?: GPUPrimitiveState;
|
|
531
|
+
vertex: GPUVertexState;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
interface GPURequestAdapterOptions {
|
|
535
|
+
forceFallbackAdapter?: boolean;
|
|
536
|
+
powerPreference?: GPUPowerPreference;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
interface GPUSamplerBindingLayout {
|
|
540
|
+
type?: GPUSamplerBindingType;
|
|
541
|
+
}
|
|
542
|
+
|
|
446
543
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
447
544
|
addressModeU?: GPUAddressMode;
|
|
448
545
|
addressModeV?: GPUAddressMode;
|
|
@@ -460,6 +557,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
|
460
557
|
code: string;
|
|
461
558
|
}
|
|
462
559
|
|
|
560
|
+
interface GPUStencilFaceState {
|
|
561
|
+
compare?: GPUCompareFunction;
|
|
562
|
+
depthFailOp?: GPUStencilOperation;
|
|
563
|
+
failOp?: GPUStencilOperation;
|
|
564
|
+
passOp?: GPUStencilOperation;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
interface GPUStorageTextureBindingLayout {
|
|
568
|
+
access?: GPUStorageTextureAccess;
|
|
569
|
+
format: GPUTextureFormat;
|
|
570
|
+
viewDimension?: GPUTextureViewDimension;
|
|
571
|
+
}
|
|
572
|
+
|
|
463
573
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
464
574
|
buffer: GPUBuffer;
|
|
465
575
|
}
|
|
@@ -477,6 +587,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
477
587
|
texture: GPUTexture;
|
|
478
588
|
}
|
|
479
589
|
|
|
590
|
+
interface GPUTextureBindingLayout {
|
|
591
|
+
multisampled?: boolean;
|
|
592
|
+
sampleType?: GPUTextureSampleType;
|
|
593
|
+
viewDimension?: GPUTextureViewDimension;
|
|
594
|
+
}
|
|
595
|
+
|
|
480
596
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
481
597
|
dimension?: GPUTextureDimension;
|
|
482
598
|
format: GPUTextureFormat;
|
|
@@ -502,6 +618,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
502
618
|
error: GPUError;
|
|
503
619
|
}
|
|
504
620
|
|
|
621
|
+
interface GPUVertexAttribute {
|
|
622
|
+
format: GPUVertexFormat;
|
|
623
|
+
offset: GPUSize64;
|
|
624
|
+
shaderLocation: GPUIndex32;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
interface GPUVertexBufferLayout {
|
|
628
|
+
arrayStride: GPUSize64;
|
|
629
|
+
attributes: GPUVertexAttribute[];
|
|
630
|
+
stepMode?: GPUVertexStepMode;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
634
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
635
|
+
}
|
|
636
|
+
|
|
505
637
|
interface GetNotificationOptions {
|
|
506
638
|
tag?: string;
|
|
507
639
|
}
|
|
@@ -4404,6 +4536,76 @@ declare var FormData: {
|
|
|
4404
4536
|
new(): FormData;
|
|
4405
4537
|
};
|
|
4406
4538
|
|
|
4539
|
+
/**
|
|
4540
|
+
* 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.
|
|
4541
|
+
* Available only in secure contexts.
|
|
4542
|
+
*
|
|
4543
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
4544
|
+
*/
|
|
4545
|
+
interface GPU {
|
|
4546
|
+
/**
|
|
4547
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
4548
|
+
*
|
|
4549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
4550
|
+
*/
|
|
4551
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
4552
|
+
/**
|
|
4553
|
+
* 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.
|
|
4554
|
+
*
|
|
4555
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
4556
|
+
*/
|
|
4557
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
4558
|
+
/**
|
|
4559
|
+
* 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.
|
|
4560
|
+
*
|
|
4561
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
4562
|
+
*/
|
|
4563
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
declare var GPU: {
|
|
4567
|
+
prototype: GPU;
|
|
4568
|
+
new(): GPU;
|
|
4569
|
+
};
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
4573
|
+
* Available only in secure contexts.
|
|
4574
|
+
*
|
|
4575
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
4576
|
+
*/
|
|
4577
|
+
interface GPUAdapter {
|
|
4578
|
+
/**
|
|
4579
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
4580
|
+
*
|
|
4581
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
4582
|
+
*/
|
|
4583
|
+
readonly features: GPUSupportedFeatures;
|
|
4584
|
+
/**
|
|
4585
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
4586
|
+
*
|
|
4587
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
4588
|
+
*/
|
|
4589
|
+
readonly info: GPUAdapterInfo;
|
|
4590
|
+
/**
|
|
4591
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
4592
|
+
*
|
|
4593
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
4594
|
+
*/
|
|
4595
|
+
readonly limits: GPUSupportedLimits;
|
|
4596
|
+
/**
|
|
4597
|
+
* 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.
|
|
4598
|
+
*
|
|
4599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
4600
|
+
*/
|
|
4601
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
4602
|
+
}
|
|
4603
|
+
|
|
4604
|
+
declare var GPUAdapter: {
|
|
4605
|
+
prototype: GPUAdapter;
|
|
4606
|
+
new(): GPUAdapter;
|
|
4607
|
+
};
|
|
4608
|
+
|
|
4407
4609
|
/**
|
|
4408
4610
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4409
4611
|
* Available only in secure contexts.
|
|
@@ -4857,6 +5059,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4857
5059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4858
5060
|
*/
|
|
4859
5061
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5062
|
+
/**
|
|
5063
|
+
* 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.
|
|
5064
|
+
*
|
|
5065
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
5066
|
+
*/
|
|
5067
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
4860
5068
|
/**
|
|
4861
5069
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4862
5070
|
*
|
|
@@ -4899,6 +5107,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4899
5107
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4900
5108
|
*/
|
|
4901
5109
|
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5110
|
+
/**
|
|
5111
|
+
* 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.
|
|
5112
|
+
*
|
|
5113
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
5114
|
+
*/
|
|
5115
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
5116
|
+
/**
|
|
5117
|
+
* 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.
|
|
5118
|
+
*
|
|
5119
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
5120
|
+
*/
|
|
5121
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
4902
5122
|
/**
|
|
4903
5123
|
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4904
5124
|
*
|
|
@@ -6349,19 +6569,6 @@ interface ImportMeta {
|
|
|
6349
6569
|
resolve(specifier: string): string;
|
|
6350
6570
|
}
|
|
6351
6571
|
|
|
6352
|
-
/**
|
|
6353
|
-
* 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.
|
|
6354
|
-
*
|
|
6355
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6356
|
-
*/
|
|
6357
|
-
interface InstallEvent extends ExtendableEvent {
|
|
6358
|
-
}
|
|
6359
|
-
|
|
6360
|
-
declare var InstallEvent: {
|
|
6361
|
-
prototype: InstallEvent;
|
|
6362
|
-
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6363
|
-
};
|
|
6364
|
-
|
|
6365
6572
|
/**
|
|
6366
6573
|
* 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.
|
|
6367
6574
|
*
|
|
@@ -6627,6 +6834,15 @@ interface NavigatorConcurrentHardware {
|
|
|
6627
6834
|
readonly hardwareConcurrency: number;
|
|
6628
6835
|
}
|
|
6629
6836
|
|
|
6837
|
+
interface NavigatorGPU {
|
|
6838
|
+
/**
|
|
6839
|
+
* Available only in secure contexts.
|
|
6840
|
+
*
|
|
6841
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
6842
|
+
*/
|
|
6843
|
+
readonly gpu: GPU;
|
|
6844
|
+
}
|
|
6845
|
+
|
|
6630
6846
|
interface NavigatorID {
|
|
6631
6847
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
6632
6848
|
readonly appCodeName: string;
|
|
@@ -12303,7 +12519,7 @@ declare var WorkerLocation: {
|
|
|
12303
12519
|
*
|
|
12304
12520
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
12305
12521
|
*/
|
|
12306
|
-
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
12522
|
+
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
12307
12523
|
/**
|
|
12308
12524
|
* 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).
|
|
12309
12525
|
*
|
|
@@ -13109,7 +13325,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
|
|
|
13109
13325
|
type GPUBufferDynamicOffset = number;
|
|
13110
13326
|
type GPUBufferUsageFlags = number;
|
|
13111
13327
|
type GPUColor = number[] | GPUColorDict;
|
|
13328
|
+
type GPUColorWriteFlags = number;
|
|
13112
13329
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
13330
|
+
type GPUDepthBias = number;
|
|
13113
13331
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
13114
13332
|
type GPUFlagsConstant = number;
|
|
13115
13333
|
type GPUIndex32 = number;
|
|
@@ -13119,6 +13337,8 @@ type GPUMapModeFlags = number;
|
|
|
13119
13337
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
13120
13338
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
13121
13339
|
type GPUPipelineConstantValue = number;
|
|
13340
|
+
type GPUSampleMask = number;
|
|
13341
|
+
type GPUShaderStageFlags = number;
|
|
13122
13342
|
type GPUSignedOffset32 = number;
|
|
13123
13343
|
type GPUSize32 = number;
|
|
13124
13344
|
type GPUSize32Out = number;
|
|
@@ -13176,24 +13396,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
13176
13396
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13177
13397
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13178
13398
|
type GPUAutoLayoutMode = "auto";
|
|
13399
|
+
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";
|
|
13400
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
13401
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
13179
13402
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
13180
13403
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
13181
13404
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13182
13405
|
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
13183
13406
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13407
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
13184
13408
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13185
13409
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13410
|
+
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";
|
|
13186
13411
|
type GPUFilterMode = "linear" | "nearest";
|
|
13412
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
13187
13413
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13188
13414
|
type GPULoadOp = "clear" | "load";
|
|
13189
13415
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
13190
13416
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13417
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
13418
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
13191
13419
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13420
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
13421
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
13422
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
13192
13423
|
type GPUStoreOp = "discard" | "store";
|
|
13193
13424
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
13194
13425
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
13195
13426
|
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";
|
|
13427
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
13196
13428
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13429
|
+
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";
|
|
13430
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
13197
13431
|
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";
|
|
13198
13432
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
13199
13433
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|