@types/web 0.0.315 → 0.0.316
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 +455 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +449 -1
- package/ts5.5/iterable.d.ts +6 -0
- package/ts5.6/index.d.ts +449 -1
- package/ts5.6/iterable.d.ts +6 -0
- package/ts5.9/index.d.ts +449 -1
- package/ts5.9/iterable.d.ts +6 -0
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.316 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.316.
|
package/index.d.ts
CHANGED
|
@@ -808,10 +808,29 @@ interface FullscreenOptions {
|
|
|
808
808
|
navigationUI?: FullscreenNavigationUI;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
+
interface GPUObjectDescriptorBase {
|
|
812
|
+
label?: string;
|
|
813
|
+
}
|
|
814
|
+
|
|
811
815
|
interface GPUPipelineErrorInit {
|
|
812
816
|
reason: GPUPipelineErrorReason;
|
|
813
817
|
}
|
|
814
818
|
|
|
819
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
820
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
821
|
+
aspect?: GPUTextureAspect;
|
|
822
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
823
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
824
|
+
dimension?: GPUTextureViewDimension;
|
|
825
|
+
format?: GPUTextureFormat;
|
|
826
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
827
|
+
usage?: GPUTextureUsageFlags;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
831
|
+
error: GPUError;
|
|
832
|
+
}
|
|
833
|
+
|
|
815
834
|
interface GainOptions extends AudioNodeOptions {
|
|
816
835
|
gain?: number;
|
|
817
836
|
}
|
|
@@ -6359,7 +6378,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6359
6378
|
*/
|
|
6360
6379
|
backfaceVisibility: string;
|
|
6361
6380
|
/**
|
|
6362
|
-
* The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin
|
|
6381
|
+
* The **`background`** shorthand CSS property sets all background style properties at once, such as color, image, origin, size, and repeat method.
|
|
6363
6382
|
*
|
|
6364
6383
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background)
|
|
6365
6384
|
*/
|
|
@@ -12561,6 +12580,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12561
12580
|
createEvent(eventInterface: "FocusEvent"): FocusEvent;
|
|
12562
12581
|
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
|
|
12563
12582
|
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
|
|
12583
|
+
createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
|
|
12564
12584
|
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
|
|
12565
12585
|
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
|
|
12566
12586
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
@@ -14703,6 +14723,88 @@ declare var FragmentDirective: {
|
|
|
14703
14723
|
new(): FragmentDirective;
|
|
14704
14724
|
};
|
|
14705
14725
|
|
|
14726
|
+
/**
|
|
14727
|
+
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
14728
|
+
* Available only in secure contexts.
|
|
14729
|
+
*
|
|
14730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
14731
|
+
*/
|
|
14732
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
14733
|
+
}
|
|
14734
|
+
|
|
14735
|
+
declare var GPUBindGroup: {
|
|
14736
|
+
prototype: GPUBindGroup;
|
|
14737
|
+
new(): GPUBindGroup;
|
|
14738
|
+
};
|
|
14739
|
+
|
|
14740
|
+
/**
|
|
14741
|
+
* The **`GPUBindGroupLayout`** interface of the WebGPU API 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.
|
|
14742
|
+
* Available only in secure contexts.
|
|
14743
|
+
*
|
|
14744
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
14745
|
+
*/
|
|
14746
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
14747
|
+
}
|
|
14748
|
+
|
|
14749
|
+
declare var GPUBindGroupLayout: {
|
|
14750
|
+
prototype: GPUBindGroupLayout;
|
|
14751
|
+
new(): GPUBindGroupLayout;
|
|
14752
|
+
};
|
|
14753
|
+
|
|
14754
|
+
/**
|
|
14755
|
+
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14756
|
+
* Available only in secure contexts.
|
|
14757
|
+
*
|
|
14758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
14759
|
+
*/
|
|
14760
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
14761
|
+
}
|
|
14762
|
+
|
|
14763
|
+
declare var GPUCommandBuffer: {
|
|
14764
|
+
prototype: GPUCommandBuffer;
|
|
14765
|
+
new(): GPUCommandBuffer;
|
|
14766
|
+
};
|
|
14767
|
+
|
|
14768
|
+
/**
|
|
14769
|
+
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14770
|
+
* Available only in secure contexts.
|
|
14771
|
+
*
|
|
14772
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
14773
|
+
*/
|
|
14774
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
14775
|
+
}
|
|
14776
|
+
|
|
14777
|
+
declare var GPUComputePipeline: {
|
|
14778
|
+
prototype: GPUComputePipeline;
|
|
14779
|
+
new(): GPUComputePipeline;
|
|
14780
|
+
};
|
|
14781
|
+
|
|
14782
|
+
/**
|
|
14783
|
+
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
14784
|
+
* Available only in secure contexts.
|
|
14785
|
+
*
|
|
14786
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
14787
|
+
*/
|
|
14788
|
+
interface GPUDeviceLostInfo {
|
|
14789
|
+
/**
|
|
14790
|
+
* The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
|
|
14791
|
+
*
|
|
14792
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
|
|
14793
|
+
*/
|
|
14794
|
+
readonly message: string;
|
|
14795
|
+
/**
|
|
14796
|
+
* The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
|
|
14797
|
+
*
|
|
14798
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
|
|
14799
|
+
*/
|
|
14800
|
+
readonly reason: GPUDeviceLostReason;
|
|
14801
|
+
}
|
|
14802
|
+
|
|
14803
|
+
declare var GPUDeviceLostInfo: {
|
|
14804
|
+
prototype: GPUDeviceLostInfo;
|
|
14805
|
+
new(): GPUDeviceLostInfo;
|
|
14806
|
+
};
|
|
14807
|
+
|
|
14706
14808
|
/**
|
|
14707
14809
|
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
14708
14810
|
* Available only in secure contexts.
|
|
@@ -14723,6 +14825,58 @@ declare var GPUError: {
|
|
|
14723
14825
|
new(): GPUError;
|
|
14724
14826
|
};
|
|
14725
14827
|
|
|
14828
|
+
/**
|
|
14829
|
+
* The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
|
|
14830
|
+
* Available only in secure contexts.
|
|
14831
|
+
*
|
|
14832
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
14833
|
+
*/
|
|
14834
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
14835
|
+
}
|
|
14836
|
+
|
|
14837
|
+
declare var GPUExternalTexture: {
|
|
14838
|
+
prototype: GPUExternalTexture;
|
|
14839
|
+
new(): GPUExternalTexture;
|
|
14840
|
+
};
|
|
14841
|
+
|
|
14842
|
+
/**
|
|
14843
|
+
* The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
|
|
14844
|
+
* Available only in secure contexts.
|
|
14845
|
+
*
|
|
14846
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
14847
|
+
*/
|
|
14848
|
+
interface GPUInternalError extends GPUError {
|
|
14849
|
+
}
|
|
14850
|
+
|
|
14851
|
+
declare var GPUInternalError: {
|
|
14852
|
+
prototype: GPUInternalError;
|
|
14853
|
+
new(message: string): GPUInternalError;
|
|
14854
|
+
};
|
|
14855
|
+
|
|
14856
|
+
interface GPUObjectBase {
|
|
14857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
14858
|
+
label: string;
|
|
14859
|
+
}
|
|
14860
|
+
|
|
14861
|
+
/**
|
|
14862
|
+
* The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
|
|
14863
|
+
* Available only in secure contexts.
|
|
14864
|
+
*
|
|
14865
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
14866
|
+
*/
|
|
14867
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
14868
|
+
}
|
|
14869
|
+
|
|
14870
|
+
declare var GPUOutOfMemoryError: {
|
|
14871
|
+
prototype: GPUOutOfMemoryError;
|
|
14872
|
+
new(message: string): GPUOutOfMemoryError;
|
|
14873
|
+
};
|
|
14874
|
+
|
|
14875
|
+
interface GPUPipelineBase {
|
|
14876
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
14877
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
14878
|
+
}
|
|
14879
|
+
|
|
14726
14880
|
/**
|
|
14727
14881
|
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
|
|
14728
14882
|
* Available only in secure contexts.
|
|
@@ -14743,6 +14897,275 @@ declare var GPUPipelineError: {
|
|
|
14743
14897
|
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
14744
14898
|
};
|
|
14745
14899
|
|
|
14900
|
+
/**
|
|
14901
|
+
* The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
14902
|
+
* Available only in secure contexts.
|
|
14903
|
+
*
|
|
14904
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
14905
|
+
*/
|
|
14906
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
14907
|
+
}
|
|
14908
|
+
|
|
14909
|
+
declare var GPUPipelineLayout: {
|
|
14910
|
+
prototype: GPUPipelineLayout;
|
|
14911
|
+
new(): GPUPipelineLayout;
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14914
|
+
/**
|
|
14915
|
+
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
14916
|
+
* Available only in secure contexts.
|
|
14917
|
+
*
|
|
14918
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
14919
|
+
*/
|
|
14920
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
14921
|
+
}
|
|
14922
|
+
|
|
14923
|
+
declare var GPURenderBundle: {
|
|
14924
|
+
prototype: GPURenderBundle;
|
|
14925
|
+
new(): GPURenderBundle;
|
|
14926
|
+
};
|
|
14927
|
+
|
|
14928
|
+
/**
|
|
14929
|
+
* The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
|
|
14930
|
+
* Available only in secure contexts.
|
|
14931
|
+
*
|
|
14932
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
14933
|
+
*/
|
|
14934
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
14935
|
+
}
|
|
14936
|
+
|
|
14937
|
+
declare var GPURenderPipeline: {
|
|
14938
|
+
prototype: GPURenderPipeline;
|
|
14939
|
+
new(): GPURenderPipeline;
|
|
14940
|
+
};
|
|
14941
|
+
|
|
14942
|
+
/**
|
|
14943
|
+
* The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
|
|
14944
|
+
* Available only in secure contexts.
|
|
14945
|
+
*
|
|
14946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
14947
|
+
*/
|
|
14948
|
+
interface GPUSampler extends GPUObjectBase {
|
|
14949
|
+
}
|
|
14950
|
+
|
|
14951
|
+
declare var GPUSampler: {
|
|
14952
|
+
prototype: GPUSampler;
|
|
14953
|
+
new(): GPUSampler;
|
|
14954
|
+
};
|
|
14955
|
+
|
|
14956
|
+
/**
|
|
14957
|
+
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
14958
|
+
* Available only in secure contexts.
|
|
14959
|
+
*
|
|
14960
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
14961
|
+
*/
|
|
14962
|
+
interface GPUSupportedFeatures {
|
|
14963
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
14964
|
+
}
|
|
14965
|
+
|
|
14966
|
+
declare var GPUSupportedFeatures: {
|
|
14967
|
+
prototype: GPUSupportedFeatures;
|
|
14968
|
+
new(): GPUSupportedFeatures;
|
|
14969
|
+
};
|
|
14970
|
+
|
|
14971
|
+
/**
|
|
14972
|
+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
|
|
14973
|
+
* Available only in secure contexts.
|
|
14974
|
+
*
|
|
14975
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
14976
|
+
*/
|
|
14977
|
+
interface GPUSupportedLimits {
|
|
14978
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14979
|
+
readonly maxBindGroups: number;
|
|
14980
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14981
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
14982
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14983
|
+
readonly maxBindingsPerBindGroup: number;
|
|
14984
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14985
|
+
readonly maxBufferSize: number;
|
|
14986
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14987
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
14988
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14989
|
+
readonly maxColorAttachments: number;
|
|
14990
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14991
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
14992
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14993
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
14994
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14995
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
14996
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14997
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
14998
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
14999
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
15000
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15001
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
15002
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15003
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
15004
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15005
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
15006
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15007
|
+
readonly maxInterStageShaderVariables: number;
|
|
15008
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15009
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
15010
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15011
|
+
readonly maxSamplersPerShaderStage: number;
|
|
15012
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15013
|
+
readonly maxStorageBufferBindingSize: number;
|
|
15014
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15015
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
15016
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15017
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
15018
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15019
|
+
readonly maxTextureArrayLayers: number;
|
|
15020
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15021
|
+
readonly maxTextureDimension1D: number;
|
|
15022
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15023
|
+
readonly maxTextureDimension2D: number;
|
|
15024
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15025
|
+
readonly maxTextureDimension3D: number;
|
|
15026
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15027
|
+
readonly maxUniformBufferBindingSize: number;
|
|
15028
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15029
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
15030
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15031
|
+
readonly maxVertexAttributes: number;
|
|
15032
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15033
|
+
readonly maxVertexBufferArrayStride: number;
|
|
15034
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15035
|
+
readonly maxVertexBuffers: number;
|
|
15036
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15037
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
15038
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
15039
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
15040
|
+
}
|
|
15041
|
+
|
|
15042
|
+
declare var GPUSupportedLimits: {
|
|
15043
|
+
prototype: GPUSupportedLimits;
|
|
15044
|
+
new(): GPUSupportedLimits;
|
|
15045
|
+
};
|
|
15046
|
+
|
|
15047
|
+
/**
|
|
15048
|
+
* The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
15049
|
+
* Available only in secure contexts.
|
|
15050
|
+
*
|
|
15051
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
15052
|
+
*/
|
|
15053
|
+
interface GPUTexture extends GPUObjectBase {
|
|
15054
|
+
/**
|
|
15055
|
+
* The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
|
|
15056
|
+
*
|
|
15057
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
|
|
15058
|
+
*/
|
|
15059
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
15060
|
+
/**
|
|
15061
|
+
* The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
|
|
15062
|
+
*
|
|
15063
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
|
|
15064
|
+
*/
|
|
15065
|
+
readonly dimension: GPUTextureDimension;
|
|
15066
|
+
/**
|
|
15067
|
+
* The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
|
|
15068
|
+
*
|
|
15069
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
|
|
15070
|
+
*/
|
|
15071
|
+
readonly format: GPUTextureFormat;
|
|
15072
|
+
/**
|
|
15073
|
+
* The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
|
|
15074
|
+
*
|
|
15075
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
|
|
15076
|
+
*/
|
|
15077
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
15078
|
+
/**
|
|
15079
|
+
* The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
|
|
15080
|
+
*
|
|
15081
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
|
|
15082
|
+
*/
|
|
15083
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
15084
|
+
/**
|
|
15085
|
+
* The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
|
|
15086
|
+
*
|
|
15087
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
|
|
15088
|
+
*/
|
|
15089
|
+
readonly sampleCount: GPUSize32Out;
|
|
15090
|
+
/**
|
|
15091
|
+
* The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
|
|
15092
|
+
*
|
|
15093
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
|
|
15094
|
+
*/
|
|
15095
|
+
readonly usage: GPUFlagsConstant;
|
|
15096
|
+
/**
|
|
15097
|
+
* The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
|
|
15098
|
+
*
|
|
15099
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
|
|
15100
|
+
*/
|
|
15101
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
15102
|
+
/**
|
|
15103
|
+
* The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
|
|
15104
|
+
*
|
|
15105
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
|
|
15106
|
+
*/
|
|
15107
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
15108
|
+
/**
|
|
15109
|
+
* The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
|
|
15110
|
+
*
|
|
15111
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
|
|
15112
|
+
*/
|
|
15113
|
+
destroy(): void;
|
|
15114
|
+
}
|
|
15115
|
+
|
|
15116
|
+
declare var GPUTexture: {
|
|
15117
|
+
prototype: GPUTexture;
|
|
15118
|
+
new(): GPUTexture;
|
|
15119
|
+
};
|
|
15120
|
+
|
|
15121
|
+
/**
|
|
15122
|
+
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
|
|
15123
|
+
* Available only in secure contexts.
|
|
15124
|
+
*
|
|
15125
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
15126
|
+
*/
|
|
15127
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
15128
|
+
}
|
|
15129
|
+
|
|
15130
|
+
declare var GPUTextureView: {
|
|
15131
|
+
prototype: GPUTextureView;
|
|
15132
|
+
new(): GPUTextureView;
|
|
15133
|
+
};
|
|
15134
|
+
|
|
15135
|
+
/**
|
|
15136
|
+
* The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
|
|
15137
|
+
* Available only in secure contexts.
|
|
15138
|
+
*
|
|
15139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
15140
|
+
*/
|
|
15141
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
15142
|
+
/**
|
|
15143
|
+
* The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
|
|
15144
|
+
*
|
|
15145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
|
|
15146
|
+
*/
|
|
15147
|
+
readonly error: GPUError;
|
|
15148
|
+
}
|
|
15149
|
+
|
|
15150
|
+
declare var GPUUncapturedErrorEvent: {
|
|
15151
|
+
prototype: GPUUncapturedErrorEvent;
|
|
15152
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
15153
|
+
};
|
|
15154
|
+
|
|
15155
|
+
/**
|
|
15156
|
+
* The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
|
|
15157
|
+
* Available only in secure contexts.
|
|
15158
|
+
*
|
|
15159
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
15160
|
+
*/
|
|
15161
|
+
interface GPUValidationError extends GPUError {
|
|
15162
|
+
}
|
|
15163
|
+
|
|
15164
|
+
declare var GPUValidationError: {
|
|
15165
|
+
prototype: GPUValidationError;
|
|
15166
|
+
new(message: string): GPUValidationError;
|
|
15167
|
+
};
|
|
15168
|
+
|
|
14746
15169
|
/**
|
|
14747
15170
|
* The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
|
|
14748
15171
|
*
|
|
@@ -36823,6 +37246,21 @@ interface WEBGL_multi_draw {
|
|
|
36823
37246
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
36824
37247
|
}
|
|
36825
37248
|
|
|
37249
|
+
/**
|
|
37250
|
+
* The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
37251
|
+
* Available only in secure contexts.
|
|
37252
|
+
*
|
|
37253
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
37254
|
+
*/
|
|
37255
|
+
interface WGSLLanguageFeatures {
|
|
37256
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
37257
|
+
}
|
|
37258
|
+
|
|
37259
|
+
declare var WGSLLanguageFeatures: {
|
|
37260
|
+
prototype: WGSLLanguageFeatures;
|
|
37261
|
+
new(): WGSLLanguageFeatures;
|
|
37262
|
+
};
|
|
37263
|
+
|
|
36826
37264
|
/**
|
|
36827
37265
|
* The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
|
|
36828
37266
|
* Available only in secure contexts.
|
|
@@ -42472,6 +42910,11 @@ type GLsizei = number;
|
|
|
42472
42910
|
type GLsizeiptr = number;
|
|
42473
42911
|
type GLuint = number;
|
|
42474
42912
|
type GLuint64 = number;
|
|
42913
|
+
type GPUFlagsConstant = number;
|
|
42914
|
+
type GPUIntegerCoordinate = number;
|
|
42915
|
+
type GPUIntegerCoordinateOut = number;
|
|
42916
|
+
type GPUSize32Out = number;
|
|
42917
|
+
type GPUTextureUsageFlags = number;
|
|
42475
42918
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
42476
42919
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
42477
42920
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
@@ -42575,7 +43018,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
42575
43018
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
42576
43019
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
42577
43020
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43021
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
42578
43022
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43023
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43024
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43025
|
+
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";
|
|
43026
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
42579
43027
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
42580
43028
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
42581
43029
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
@@ -42859,6 +43307,9 @@ interface FormData {
|
|
|
42859
43307
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
42860
43308
|
}
|
|
42861
43309
|
|
|
43310
|
+
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
43311
|
+
}
|
|
43312
|
+
|
|
42862
43313
|
interface HTMLAllCollection {
|
|
42863
43314
|
[Symbol.iterator](): ArrayIterator<Element>;
|
|
42864
43315
|
}
|
|
@@ -43164,6 +43615,9 @@ interface WEBGL_multi_draw {
|
|
|
43164
43615
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
43165
43616
|
}
|
|
43166
43617
|
|
|
43618
|
+
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
43619
|
+
}
|
|
43620
|
+
|
|
43167
43621
|
interface WebGL2RenderingContextBase {
|
|
43168
43622
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
43169
43623
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
|