@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 +1 -1
- package/index.d.ts +248 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +248 -1
- package/ts5.6/index.d.ts +248 -1
- package/ts5.9/index.d.ts +248 -1
package/ts5.9/index.d.ts
CHANGED
|
@@ -226,12 +226,43 @@ interface GPUBindGroupEntry {
|
|
|
226
226
|
resource: GPUBindingResource;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
230
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface GPUBindGroupLayoutEntry {
|
|
234
|
+
binding: GPUIndex32;
|
|
235
|
+
buffer?: GPUBufferBindingLayout;
|
|
236
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
237
|
+
sampler?: GPUSamplerBindingLayout;
|
|
238
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
239
|
+
texture?: GPUTextureBindingLayout;
|
|
240
|
+
visibility: GPUShaderStageFlags;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface GPUBlendComponent {
|
|
244
|
+
dstFactor?: GPUBlendFactor;
|
|
245
|
+
operation?: GPUBlendOperation;
|
|
246
|
+
srcFactor?: GPUBlendFactor;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
interface GPUBlendState {
|
|
250
|
+
alpha: GPUBlendComponent;
|
|
251
|
+
color: GPUBlendComponent;
|
|
252
|
+
}
|
|
253
|
+
|
|
229
254
|
interface GPUBufferBinding {
|
|
230
255
|
buffer: GPUBuffer;
|
|
231
256
|
offset?: GPUSize64;
|
|
232
257
|
size?: GPUSize64;
|
|
233
258
|
}
|
|
234
259
|
|
|
260
|
+
interface GPUBufferBindingLayout {
|
|
261
|
+
hasDynamicOffset?: boolean;
|
|
262
|
+
minBindingSize?: GPUSize64;
|
|
263
|
+
type?: GPUBufferBindingType;
|
|
264
|
+
}
|
|
265
|
+
|
|
235
266
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
236
267
|
mappedAtCreation?: boolean;
|
|
237
268
|
size: GPUSize64;
|
|
@@ -259,6 +290,12 @@ interface GPUColorDict {
|
|
|
259
290
|
r: number;
|
|
260
291
|
}
|
|
261
292
|
|
|
293
|
+
interface GPUColorTargetState {
|
|
294
|
+
blend?: GPUBlendState;
|
|
295
|
+
format: GPUTextureFormat;
|
|
296
|
+
writeMask?: GPUColorWriteFlags;
|
|
297
|
+
}
|
|
298
|
+
|
|
262
299
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
263
300
|
}
|
|
264
301
|
|
|
@@ -290,16 +327,48 @@ interface GPUCopyExternalImageSourceInfo {
|
|
|
290
327
|
source: GPUCopyExternalImageSource;
|
|
291
328
|
}
|
|
292
329
|
|
|
330
|
+
interface GPUDepthStencilState {
|
|
331
|
+
depthBias?: GPUDepthBias;
|
|
332
|
+
depthBiasClamp?: number;
|
|
333
|
+
depthBiasSlopeScale?: number;
|
|
334
|
+
depthCompare?: GPUCompareFunction;
|
|
335
|
+
depthWriteEnabled?: boolean;
|
|
336
|
+
format: GPUTextureFormat;
|
|
337
|
+
stencilBack?: GPUStencilFaceState;
|
|
338
|
+
stencilFront?: GPUStencilFaceState;
|
|
339
|
+
stencilReadMask?: GPUStencilValue;
|
|
340
|
+
stencilWriteMask?: GPUStencilValue;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
344
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
345
|
+
requiredFeatures?: GPUFeatureName[];
|
|
346
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
347
|
+
}
|
|
348
|
+
|
|
293
349
|
interface GPUExtent3DDict {
|
|
294
350
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
295
351
|
height?: GPUIntegerCoordinate;
|
|
296
352
|
width: GPUIntegerCoordinate;
|
|
297
353
|
}
|
|
298
354
|
|
|
355
|
+
interface GPUExternalTextureBindingLayout {
|
|
356
|
+
}
|
|
357
|
+
|
|
299
358
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
300
359
|
colorSpace?: PredefinedColorSpace;
|
|
301
360
|
}
|
|
302
361
|
|
|
362
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
363
|
+
targets: (GPUColorTargetState | null)[];
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface GPUMultisampleState {
|
|
367
|
+
alphaToCoverageEnabled?: boolean;
|
|
368
|
+
count?: GPUSize32;
|
|
369
|
+
mask?: GPUSampleMask;
|
|
370
|
+
}
|
|
371
|
+
|
|
303
372
|
interface GPUObjectDescriptorBase {
|
|
304
373
|
label?: string;
|
|
305
374
|
}
|
|
@@ -327,6 +396,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
|
327
396
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
328
397
|
}
|
|
329
398
|
|
|
399
|
+
interface GPUPrimitiveState {
|
|
400
|
+
cullMode?: GPUCullMode;
|
|
401
|
+
frontFace?: GPUFrontFace;
|
|
402
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
403
|
+
topology?: GPUPrimitiveTopology;
|
|
404
|
+
unclippedDepth?: boolean;
|
|
405
|
+
}
|
|
406
|
+
|
|
330
407
|
interface GPUProgrammableStage {
|
|
331
408
|
constants?: Record<string, GPUPipelineConstantValue>;
|
|
332
409
|
entryPoint?: string;
|
|
@@ -338,6 +415,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
338
415
|
type: GPUQueryType;
|
|
339
416
|
}
|
|
340
417
|
|
|
418
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
419
|
+
}
|
|
420
|
+
|
|
341
421
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
342
422
|
}
|
|
343
423
|
|
|
@@ -387,6 +467,23 @@ interface GPURenderPassTimestampWrites {
|
|
|
387
467
|
querySet: GPUQuerySet;
|
|
388
468
|
}
|
|
389
469
|
|
|
470
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
471
|
+
depthStencil?: GPUDepthStencilState;
|
|
472
|
+
fragment?: GPUFragmentState;
|
|
473
|
+
multisample?: GPUMultisampleState;
|
|
474
|
+
primitive?: GPUPrimitiveState;
|
|
475
|
+
vertex: GPUVertexState;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
interface GPURequestAdapterOptions {
|
|
479
|
+
forceFallbackAdapter?: boolean;
|
|
480
|
+
powerPreference?: GPUPowerPreference;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
interface GPUSamplerBindingLayout {
|
|
484
|
+
type?: GPUSamplerBindingType;
|
|
485
|
+
}
|
|
486
|
+
|
|
390
487
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
391
488
|
addressModeU?: GPUAddressMode;
|
|
392
489
|
addressModeV?: GPUAddressMode;
|
|
@@ -404,6 +501,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
|
404
501
|
code: string;
|
|
405
502
|
}
|
|
406
503
|
|
|
504
|
+
interface GPUStencilFaceState {
|
|
505
|
+
compare?: GPUCompareFunction;
|
|
506
|
+
depthFailOp?: GPUStencilOperation;
|
|
507
|
+
failOp?: GPUStencilOperation;
|
|
508
|
+
passOp?: GPUStencilOperation;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
interface GPUStorageTextureBindingLayout {
|
|
512
|
+
access?: GPUStorageTextureAccess;
|
|
513
|
+
format: GPUTextureFormat;
|
|
514
|
+
viewDimension?: GPUTextureViewDimension;
|
|
515
|
+
}
|
|
516
|
+
|
|
407
517
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
408
518
|
buffer: GPUBuffer;
|
|
409
519
|
}
|
|
@@ -421,6 +531,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
421
531
|
texture: GPUTexture;
|
|
422
532
|
}
|
|
423
533
|
|
|
534
|
+
interface GPUTextureBindingLayout {
|
|
535
|
+
multisampled?: boolean;
|
|
536
|
+
sampleType?: GPUTextureSampleType;
|
|
537
|
+
viewDimension?: GPUTextureViewDimension;
|
|
538
|
+
}
|
|
539
|
+
|
|
424
540
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
425
541
|
dimension?: GPUTextureDimension;
|
|
426
542
|
format: GPUTextureFormat;
|
|
@@ -446,6 +562,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
446
562
|
error: GPUError;
|
|
447
563
|
}
|
|
448
564
|
|
|
565
|
+
interface GPUVertexAttribute {
|
|
566
|
+
format: GPUVertexFormat;
|
|
567
|
+
offset: GPUSize64;
|
|
568
|
+
shaderLocation: GPUIndex32;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
interface GPUVertexBufferLayout {
|
|
572
|
+
arrayStride: GPUSize64;
|
|
573
|
+
attributes: GPUVertexAttribute[];
|
|
574
|
+
stepMode?: GPUVertexStepMode;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
578
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
579
|
+
}
|
|
580
|
+
|
|
449
581
|
interface GetNotificationOptions {
|
|
450
582
|
tag?: string;
|
|
451
583
|
}
|
|
@@ -4087,6 +4219,76 @@ declare var FormData: {
|
|
|
4087
4219
|
new(): FormData;
|
|
4088
4220
|
};
|
|
4089
4221
|
|
|
4222
|
+
/**
|
|
4223
|
+
* 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.
|
|
4224
|
+
* Available only in secure contexts.
|
|
4225
|
+
*
|
|
4226
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
4227
|
+
*/
|
|
4228
|
+
interface GPU {
|
|
4229
|
+
/**
|
|
4230
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
4231
|
+
*
|
|
4232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
4233
|
+
*/
|
|
4234
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
4235
|
+
/**
|
|
4236
|
+
* 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.
|
|
4237
|
+
*
|
|
4238
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
4239
|
+
*/
|
|
4240
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
4241
|
+
/**
|
|
4242
|
+
* 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.
|
|
4243
|
+
*
|
|
4244
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
4245
|
+
*/
|
|
4246
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
declare var GPU: {
|
|
4250
|
+
prototype: GPU;
|
|
4251
|
+
new(): GPU;
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
4256
|
+
* Available only in secure contexts.
|
|
4257
|
+
*
|
|
4258
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
4259
|
+
*/
|
|
4260
|
+
interface GPUAdapter {
|
|
4261
|
+
/**
|
|
4262
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
4263
|
+
*
|
|
4264
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
4265
|
+
*/
|
|
4266
|
+
readonly features: GPUSupportedFeatures;
|
|
4267
|
+
/**
|
|
4268
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
4269
|
+
*
|
|
4270
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
4271
|
+
*/
|
|
4272
|
+
readonly info: GPUAdapterInfo;
|
|
4273
|
+
/**
|
|
4274
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
4275
|
+
*
|
|
4276
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
4277
|
+
*/
|
|
4278
|
+
readonly limits: GPUSupportedLimits;
|
|
4279
|
+
/**
|
|
4280
|
+
* 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.
|
|
4281
|
+
*
|
|
4282
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
4283
|
+
*/
|
|
4284
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
declare var GPUAdapter: {
|
|
4288
|
+
prototype: GPUAdapter;
|
|
4289
|
+
new(): GPUAdapter;
|
|
4290
|
+
};
|
|
4291
|
+
|
|
4090
4292
|
/**
|
|
4091
4293
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4092
4294
|
* Available only in secure contexts.
|
|
@@ -4540,6 +4742,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4540
4742
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4541
4743
|
*/
|
|
4542
4744
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4745
|
+
/**
|
|
4746
|
+
* 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.
|
|
4747
|
+
*
|
|
4748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
4749
|
+
*/
|
|
4750
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
4543
4751
|
/**
|
|
4544
4752
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4545
4753
|
*
|
|
@@ -4582,6 +4790,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4582
4790
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4583
4791
|
*/
|
|
4584
4792
|
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
4793
|
+
/**
|
|
4794
|
+
* 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.
|
|
4795
|
+
*
|
|
4796
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
4797
|
+
*/
|
|
4798
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
4799
|
+
/**
|
|
4800
|
+
* 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.
|
|
4801
|
+
*
|
|
4802
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
4803
|
+
*/
|
|
4804
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
4585
4805
|
/**
|
|
4586
4806
|
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4587
4807
|
*
|
|
@@ -6297,6 +6517,15 @@ interface NavigatorConcurrentHardware {
|
|
|
6297
6517
|
readonly hardwareConcurrency: number;
|
|
6298
6518
|
}
|
|
6299
6519
|
|
|
6520
|
+
interface NavigatorGPU {
|
|
6521
|
+
/**
|
|
6522
|
+
* Available only in secure contexts.
|
|
6523
|
+
*
|
|
6524
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
6525
|
+
*/
|
|
6526
|
+
readonly gpu: GPU;
|
|
6527
|
+
}
|
|
6528
|
+
|
|
6300
6529
|
interface NavigatorID {
|
|
6301
6530
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
6302
6531
|
readonly appCodeName: string;
|
|
@@ -11829,7 +12058,7 @@ declare var WorkerLocation: {
|
|
|
11829
12058
|
*
|
|
11830
12059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
11831
12060
|
*/
|
|
11832
|
-
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
12061
|
+
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
11833
12062
|
/**
|
|
11834
12063
|
* 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).
|
|
11835
12064
|
*
|
|
@@ -12785,7 +13014,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
|
|
|
12785
13014
|
type GPUBufferDynamicOffset = number;
|
|
12786
13015
|
type GPUBufferUsageFlags = number;
|
|
12787
13016
|
type GPUColor = number[] | GPUColorDict;
|
|
13017
|
+
type GPUColorWriteFlags = number;
|
|
12788
13018
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
13019
|
+
type GPUDepthBias = number;
|
|
12789
13020
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
12790
13021
|
type GPUFlagsConstant = number;
|
|
12791
13022
|
type GPUIndex32 = number;
|
|
@@ -12795,6 +13026,8 @@ type GPUMapModeFlags = number;
|
|
|
12795
13026
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12796
13027
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
12797
13028
|
type GPUPipelineConstantValue = number;
|
|
13029
|
+
type GPUSampleMask = number;
|
|
13030
|
+
type GPUShaderStageFlags = number;
|
|
12798
13031
|
type GPUSignedOffset32 = number;
|
|
12799
13032
|
type GPUSize32 = number;
|
|
12800
13033
|
type GPUSize32Out = number;
|
|
@@ -12848,24 +13081,38 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
|
12848
13081
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
12849
13082
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
12850
13083
|
type GPUAutoLayoutMode = "auto";
|
|
13084
|
+
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";
|
|
13085
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
13086
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
12851
13087
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12852
13088
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
12853
13089
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12854
13090
|
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
12855
13091
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13092
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
12856
13093
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12857
13094
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13095
|
+
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";
|
|
12858
13096
|
type GPUFilterMode = "linear" | "nearest";
|
|
13097
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
12859
13098
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12860
13099
|
type GPULoadOp = "clear" | "load";
|
|
12861
13100
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
12862
13101
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13102
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
13103
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
12863
13104
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13105
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
13106
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
13107
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
12864
13108
|
type GPUStoreOp = "discard" | "store";
|
|
12865
13109
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12866
13110
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12867
13111
|
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";
|
|
13112
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
12868
13113
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13114
|
+
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";
|
|
13115
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
12869
13116
|
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";
|
|
12870
13117
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
12871
13118
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|