@types/web 0.0.180 → 0.0.182
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 +1230 -8
- package/iterable.d.ts +36 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +1230 -8
- package/ts5.5/iterable.d.ts +36 -0
package/index.d.ts
CHANGED
|
@@ -661,6 +661,369 @@ interface FullscreenOptions {
|
|
|
661
661
|
navigationUI?: FullscreenNavigationUI;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
665
|
+
entries: GPUBindGroupEntry[];
|
|
666
|
+
layout: GPUBindGroupLayout;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
interface GPUBindGroupEntry {
|
|
670
|
+
binding: GPUIndex32;
|
|
671
|
+
resource: GPUBindingResource;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
675
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
interface GPUBindGroupLayoutEntry {
|
|
679
|
+
binding: GPUIndex32;
|
|
680
|
+
buffer?: GPUBufferBindingLayout;
|
|
681
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
682
|
+
sampler?: GPUSamplerBindingLayout;
|
|
683
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
684
|
+
texture?: GPUTextureBindingLayout;
|
|
685
|
+
visibility: GPUShaderStageFlags;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface GPUBlendComponent {
|
|
689
|
+
dstFactor?: GPUBlendFactor;
|
|
690
|
+
operation?: GPUBlendOperation;
|
|
691
|
+
srcFactor?: GPUBlendFactor;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
interface GPUBlendState {
|
|
695
|
+
alpha: GPUBlendComponent;
|
|
696
|
+
color: GPUBlendComponent;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
interface GPUBufferBinding {
|
|
700
|
+
buffer: GPUBuffer;
|
|
701
|
+
offset?: GPUSize64;
|
|
702
|
+
size?: GPUSize64;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
interface GPUBufferBindingLayout {
|
|
706
|
+
hasDynamicOffset?: boolean;
|
|
707
|
+
minBindingSize?: GPUSize64;
|
|
708
|
+
type?: GPUBufferBindingType;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
712
|
+
mappedAtCreation?: boolean;
|
|
713
|
+
size: GPUSize64;
|
|
714
|
+
usage: GPUBufferUsageFlags;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
interface GPUCanvasConfiguration {
|
|
718
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
719
|
+
colorSpace?: PredefinedColorSpace;
|
|
720
|
+
device: GPUDevice;
|
|
721
|
+
format: GPUTextureFormat;
|
|
722
|
+
toneMapping?: GPUCanvasToneMapping;
|
|
723
|
+
usage?: GPUTextureUsageFlags;
|
|
724
|
+
viewFormats?: GPUTextureFormat[];
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
interface GPUCanvasToneMapping {
|
|
728
|
+
mode?: GPUCanvasToneMappingMode;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface GPUColorDict {
|
|
732
|
+
a: number;
|
|
733
|
+
b: number;
|
|
734
|
+
g: number;
|
|
735
|
+
r: number;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
interface GPUColorTargetState {
|
|
739
|
+
blend?: GPUBlendState;
|
|
740
|
+
format: GPUTextureFormat;
|
|
741
|
+
writeMask?: GPUColorWriteFlags;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
751
|
+
timestampWrites?: GPUComputePassTimestampWrites;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
interface GPUComputePassTimestampWrites {
|
|
755
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
756
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
757
|
+
querySet: GPUQuerySet;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
761
|
+
compute: GPUProgrammableStage;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
765
|
+
colorSpace?: PredefinedColorSpace;
|
|
766
|
+
premultipliedAlpha?: boolean;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
770
|
+
flipY?: boolean;
|
|
771
|
+
origin?: GPUOrigin2D;
|
|
772
|
+
source: GPUCopyExternalImageSource;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
interface GPUDepthStencilState {
|
|
776
|
+
depthBias?: GPUDepthBias;
|
|
777
|
+
depthBiasClamp?: number;
|
|
778
|
+
depthBiasSlopeScale?: number;
|
|
779
|
+
depthCompare?: GPUCompareFunction;
|
|
780
|
+
depthWriteEnabled?: boolean;
|
|
781
|
+
format: GPUTextureFormat;
|
|
782
|
+
stencilBack?: GPUStencilFaceState;
|
|
783
|
+
stencilFront?: GPUStencilFaceState;
|
|
784
|
+
stencilReadMask?: GPUStencilValue;
|
|
785
|
+
stencilWriteMask?: GPUStencilValue;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
789
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
790
|
+
requiredFeatures?: GPUFeatureName[];
|
|
791
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
interface GPUExtent3DDict {
|
|
795
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
796
|
+
height?: GPUIntegerCoordinate;
|
|
797
|
+
width: GPUIntegerCoordinate;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
interface GPUExternalTextureBindingLayout {
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
804
|
+
colorSpace?: PredefinedColorSpace;
|
|
805
|
+
source: HTMLVideoElement | VideoFrame;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
809
|
+
targets: (GPUColorTargetState | null)[];
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
interface GPUMultisampleState {
|
|
813
|
+
alphaToCoverageEnabled?: boolean;
|
|
814
|
+
count?: GPUSize32;
|
|
815
|
+
mask?: GPUSampleMask;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
interface GPUObjectDescriptorBase {
|
|
819
|
+
label?: string;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
interface GPUOrigin2DDict {
|
|
823
|
+
x?: GPUIntegerCoordinate;
|
|
824
|
+
y?: GPUIntegerCoordinate;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
interface GPUOrigin3DDict {
|
|
828
|
+
x?: GPUIntegerCoordinate;
|
|
829
|
+
y?: GPUIntegerCoordinate;
|
|
830
|
+
z?: GPUIntegerCoordinate;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
834
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
interface GPUPipelineErrorInit {
|
|
838
|
+
reason: GPUPipelineErrorReason;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
842
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
interface GPUPrimitiveState {
|
|
846
|
+
cullMode?: GPUCullMode;
|
|
847
|
+
frontFace?: GPUFrontFace;
|
|
848
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
849
|
+
topology?: GPUPrimitiveTopology;
|
|
850
|
+
unclippedDepth?: boolean;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
interface GPUProgrammableStage {
|
|
854
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
855
|
+
entryPoint?: string;
|
|
856
|
+
module: GPUShaderModule;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
860
|
+
count: GPUSize32;
|
|
861
|
+
type: GPUQueryType;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
871
|
+
depthReadOnly?: boolean;
|
|
872
|
+
stencilReadOnly?: boolean;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
interface GPURenderPassColorAttachment {
|
|
876
|
+
clearValue?: GPUColor;
|
|
877
|
+
depthSlice?: GPUIntegerCoordinate;
|
|
878
|
+
loadOp: GPULoadOp;
|
|
879
|
+
resolveTarget?: GPUTextureView;
|
|
880
|
+
storeOp: GPUStoreOp;
|
|
881
|
+
view: GPUTextureView;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
interface GPURenderPassDepthStencilAttachment {
|
|
885
|
+
depthClearValue?: number;
|
|
886
|
+
depthLoadOp?: GPULoadOp;
|
|
887
|
+
depthReadOnly?: boolean;
|
|
888
|
+
depthStoreOp?: GPUStoreOp;
|
|
889
|
+
stencilClearValue?: GPUStencilValue;
|
|
890
|
+
stencilLoadOp?: GPULoadOp;
|
|
891
|
+
stencilReadOnly?: boolean;
|
|
892
|
+
stencilStoreOp?: GPUStoreOp;
|
|
893
|
+
view: GPUTextureView;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
897
|
+
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
898
|
+
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
899
|
+
maxDrawCount?: GPUSize64;
|
|
900
|
+
occlusionQuerySet?: GPUQuerySet;
|
|
901
|
+
timestampWrites?: GPURenderPassTimestampWrites;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
905
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
906
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
907
|
+
sampleCount?: GPUSize32;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
interface GPURenderPassTimestampWrites {
|
|
911
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
912
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
913
|
+
querySet: GPUQuerySet;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
917
|
+
depthStencil?: GPUDepthStencilState;
|
|
918
|
+
fragment?: GPUFragmentState;
|
|
919
|
+
multisample?: GPUMultisampleState;
|
|
920
|
+
primitive?: GPUPrimitiveState;
|
|
921
|
+
vertex: GPUVertexState;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
interface GPURequestAdapterOptions {
|
|
925
|
+
forceFallbackAdapter?: boolean;
|
|
926
|
+
powerPreference?: GPUPowerPreference;
|
|
927
|
+
xrCompatible?: boolean;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
interface GPUSamplerBindingLayout {
|
|
931
|
+
type?: GPUSamplerBindingType;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
935
|
+
addressModeU?: GPUAddressMode;
|
|
936
|
+
addressModeV?: GPUAddressMode;
|
|
937
|
+
addressModeW?: GPUAddressMode;
|
|
938
|
+
compare?: GPUCompareFunction;
|
|
939
|
+
lodMaxClamp?: number;
|
|
940
|
+
lodMinClamp?: number;
|
|
941
|
+
magFilter?: GPUFilterMode;
|
|
942
|
+
maxAnisotropy?: number;
|
|
943
|
+
minFilter?: GPUFilterMode;
|
|
944
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
948
|
+
code: string;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
interface GPUStencilFaceState {
|
|
952
|
+
compare?: GPUCompareFunction;
|
|
953
|
+
depthFailOp?: GPUStencilOperation;
|
|
954
|
+
failOp?: GPUStencilOperation;
|
|
955
|
+
passOp?: GPUStencilOperation;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
interface GPUStorageTextureBindingLayout {
|
|
959
|
+
access?: GPUStorageTextureAccess;
|
|
960
|
+
format: GPUTextureFormat;
|
|
961
|
+
viewDimension?: GPUTextureViewDimension;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
965
|
+
buffer: GPUBuffer;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
interface GPUTexelCopyBufferLayout {
|
|
969
|
+
bytesPerRow?: GPUSize32;
|
|
970
|
+
offset?: GPUSize64;
|
|
971
|
+
rowsPerImage?: GPUSize32;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
interface GPUTexelCopyTextureInfo {
|
|
975
|
+
aspect?: GPUTextureAspect;
|
|
976
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
977
|
+
origin?: GPUOrigin3D;
|
|
978
|
+
texture: GPUTexture;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
interface GPUTextureBindingLayout {
|
|
982
|
+
multisampled?: boolean;
|
|
983
|
+
sampleType?: GPUTextureSampleType;
|
|
984
|
+
viewDimension?: GPUTextureViewDimension;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
988
|
+
dimension?: GPUTextureDimension;
|
|
989
|
+
format: GPUTextureFormat;
|
|
990
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
991
|
+
sampleCount?: GPUSize32;
|
|
992
|
+
size: GPUExtent3D;
|
|
993
|
+
usage: GPUTextureUsageFlags;
|
|
994
|
+
viewFormats?: GPUTextureFormat[];
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
998
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
999
|
+
aspect?: GPUTextureAspect;
|
|
1000
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
1001
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
1002
|
+
dimension?: GPUTextureViewDimension;
|
|
1003
|
+
format?: GPUTextureFormat;
|
|
1004
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
1008
|
+
error: GPUError;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
interface GPUVertexAttribute {
|
|
1012
|
+
format: GPUVertexFormat;
|
|
1013
|
+
offset: GPUSize64;
|
|
1014
|
+
shaderLocation: GPUIndex32;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
interface GPUVertexBufferLayout {
|
|
1018
|
+
arrayStride: GPUSize64;
|
|
1019
|
+
attributes: GPUVertexAttribute[];
|
|
1020
|
+
stepMode?: GPUVertexStepMode;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
1024
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
1025
|
+
}
|
|
1026
|
+
|
|
664
1027
|
interface GainOptions extends AudioNodeOptions {
|
|
665
1028
|
gain?: number;
|
|
666
1029
|
}
|
|
@@ -3971,7 +4334,9 @@ declare var CSSNamespaceRule: {
|
|
|
3971
4334
|
new(): CSSNamespaceRule;
|
|
3972
4335
|
};
|
|
3973
4336
|
|
|
4337
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */
|
|
3974
4338
|
interface CSSNestedDeclarations extends CSSRule {
|
|
4339
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */
|
|
3975
4340
|
get style(): CSSStyleDeclaration;
|
|
3976
4341
|
set style(cssText: string);
|
|
3977
4342
|
}
|
|
@@ -4553,7 +4918,9 @@ interface CSSStyleDeclaration {
|
|
|
4553
4918
|
flexWrap: string;
|
|
4554
4919
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */
|
|
4555
4920
|
float: string;
|
|
4921
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */
|
|
4556
4922
|
floodColor: string;
|
|
4923
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */
|
|
4557
4924
|
floodOpacity: string;
|
|
4558
4925
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */
|
|
4559
4926
|
font: string;
|
|
@@ -4685,6 +5052,7 @@ interface CSSStyleDeclaration {
|
|
|
4685
5052
|
readonly length: number;
|
|
4686
5053
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
|
|
4687
5054
|
letterSpacing: string;
|
|
5055
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */
|
|
4688
5056
|
lightingColor: string;
|
|
4689
5057
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */
|
|
4690
5058
|
lineBreak: string;
|
|
@@ -5491,7 +5859,11 @@ interface CSSStyleDeclaration {
|
|
|
5491
5859
|
wordBreak: string;
|
|
5492
5860
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */
|
|
5493
5861
|
wordSpacing: string;
|
|
5494
|
-
/**
|
|
5862
|
+
/**
|
|
5863
|
+
* @deprecated
|
|
5864
|
+
*
|
|
5865
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap)
|
|
5866
|
+
*/
|
|
5495
5867
|
wordWrap: string;
|
|
5496
5868
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
|
|
5497
5869
|
writingMode: string;
|
|
@@ -6802,9 +7174,13 @@ declare var DOMPointReadOnly: {
|
|
|
6802
7174
|
|
|
6803
7175
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
|
|
6804
7176
|
interface DOMQuad {
|
|
7177
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
|
|
6805
7178
|
readonly p1: DOMPoint;
|
|
7179
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
|
|
6806
7180
|
readonly p2: DOMPoint;
|
|
7181
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
|
|
6807
7182
|
readonly p3: DOMPoint;
|
|
7183
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
|
|
6808
7184
|
readonly p4: DOMPoint;
|
|
6809
7185
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
|
|
6810
7186
|
getBounds(): DOMRect;
|
|
@@ -6821,9 +7197,13 @@ declare var DOMQuad: {
|
|
|
6821
7197
|
|
|
6822
7198
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
|
|
6823
7199
|
interface DOMRect extends DOMRectReadOnly {
|
|
7200
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */
|
|
6824
7201
|
height: number;
|
|
7202
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */
|
|
6825
7203
|
width: number;
|
|
7204
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */
|
|
6826
7205
|
x: number;
|
|
7206
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */
|
|
6827
7207
|
y: number;
|
|
6828
7208
|
}
|
|
6829
7209
|
|
|
@@ -6837,8 +7217,11 @@ declare var DOMRect: {
|
|
|
6837
7217
|
type SVGRect = DOMRect;
|
|
6838
7218
|
declare var SVGRect: typeof DOMRect;
|
|
6839
7219
|
|
|
7220
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */
|
|
6840
7221
|
interface DOMRectList {
|
|
7222
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */
|
|
6841
7223
|
readonly length: number;
|
|
7224
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */
|
|
6842
7225
|
item(index: number): DOMRect | null;
|
|
6843
7226
|
[index: number]: DOMRect;
|
|
6844
7227
|
}
|
|
@@ -6866,6 +7249,7 @@ interface DOMRectReadOnly {
|
|
|
6866
7249
|
readonly x: number;
|
|
6867
7250
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
|
|
6868
7251
|
readonly y: number;
|
|
7252
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */
|
|
6869
7253
|
toJSON(): any;
|
|
6870
7254
|
}
|
|
6871
7255
|
|
|
@@ -7679,6 +8063,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7679
8063
|
createEvent(eventInterface: "FocusEvent"): FocusEvent;
|
|
7680
8064
|
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
|
|
7681
8065
|
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
|
|
8066
|
+
createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent;
|
|
7682
8067
|
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
|
|
7683
8068
|
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
|
|
7684
8069
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
@@ -9232,6 +9617,757 @@ declare var FragmentDirective: {
|
|
|
9232
9617
|
new(): FragmentDirective;
|
|
9233
9618
|
};
|
|
9234
9619
|
|
|
9620
|
+
/**
|
|
9621
|
+
* Available only in secure contexts.
|
|
9622
|
+
*
|
|
9623
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
9624
|
+
*/
|
|
9625
|
+
interface GPU {
|
|
9626
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures) */
|
|
9627
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
9628
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat) */
|
|
9629
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
9630
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter) */
|
|
9631
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
9632
|
+
}
|
|
9633
|
+
|
|
9634
|
+
declare var GPU: {
|
|
9635
|
+
prototype: GPU;
|
|
9636
|
+
new(): GPU;
|
|
9637
|
+
};
|
|
9638
|
+
|
|
9639
|
+
/**
|
|
9640
|
+
* Available only in secure contexts.
|
|
9641
|
+
*
|
|
9642
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
9643
|
+
*/
|
|
9644
|
+
interface GPUAdapter {
|
|
9645
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) */
|
|
9646
|
+
readonly features: GPUSupportedFeatures;
|
|
9647
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) */
|
|
9648
|
+
readonly info: GPUAdapterInfo;
|
|
9649
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/isFallbackAdapter) */
|
|
9650
|
+
readonly isFallbackAdapter: boolean;
|
|
9651
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) */
|
|
9652
|
+
readonly limits: GPUSupportedLimits;
|
|
9653
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) */
|
|
9654
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
9655
|
+
}
|
|
9656
|
+
|
|
9657
|
+
declare var GPUAdapter: {
|
|
9658
|
+
prototype: GPUAdapter;
|
|
9659
|
+
new(): GPUAdapter;
|
|
9660
|
+
};
|
|
9661
|
+
|
|
9662
|
+
/**
|
|
9663
|
+
* Available only in secure contexts.
|
|
9664
|
+
*
|
|
9665
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
9666
|
+
*/
|
|
9667
|
+
interface GPUAdapterInfo {
|
|
9668
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture) */
|
|
9669
|
+
readonly architecture: string;
|
|
9670
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description) */
|
|
9671
|
+
readonly description: string;
|
|
9672
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device) */
|
|
9673
|
+
readonly device: string;
|
|
9674
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor) */
|
|
9675
|
+
readonly vendor: string;
|
|
9676
|
+
}
|
|
9677
|
+
|
|
9678
|
+
declare var GPUAdapterInfo: {
|
|
9679
|
+
prototype: GPUAdapterInfo;
|
|
9680
|
+
new(): GPUAdapterInfo;
|
|
9681
|
+
};
|
|
9682
|
+
|
|
9683
|
+
/**
|
|
9684
|
+
* Available only in secure contexts.
|
|
9685
|
+
*
|
|
9686
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
9687
|
+
*/
|
|
9688
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
9689
|
+
}
|
|
9690
|
+
|
|
9691
|
+
declare var GPUBindGroup: {
|
|
9692
|
+
prototype: GPUBindGroup;
|
|
9693
|
+
new(): GPUBindGroup;
|
|
9694
|
+
};
|
|
9695
|
+
|
|
9696
|
+
/**
|
|
9697
|
+
* Available only in secure contexts.
|
|
9698
|
+
*
|
|
9699
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
9700
|
+
*/
|
|
9701
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
9702
|
+
}
|
|
9703
|
+
|
|
9704
|
+
declare var GPUBindGroupLayout: {
|
|
9705
|
+
prototype: GPUBindGroupLayout;
|
|
9706
|
+
new(): GPUBindGroupLayout;
|
|
9707
|
+
};
|
|
9708
|
+
|
|
9709
|
+
interface GPUBindingCommandsMixin {
|
|
9710
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
9711
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
9712
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
9713
|
+
}
|
|
9714
|
+
|
|
9715
|
+
/**
|
|
9716
|
+
* Available only in secure contexts.
|
|
9717
|
+
*
|
|
9718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
9719
|
+
*/
|
|
9720
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
9721
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState) */
|
|
9722
|
+
readonly mapState: GPUBufferMapState;
|
|
9723
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size) */
|
|
9724
|
+
readonly size: GPUSize64Out;
|
|
9725
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage) */
|
|
9726
|
+
readonly usage: GPUFlagsConstant;
|
|
9727
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy) */
|
|
9728
|
+
destroy(): void;
|
|
9729
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange) */
|
|
9730
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
9731
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync) */
|
|
9732
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
9733
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap) */
|
|
9734
|
+
unmap(): void;
|
|
9735
|
+
}
|
|
9736
|
+
|
|
9737
|
+
declare var GPUBuffer: {
|
|
9738
|
+
prototype: GPUBuffer;
|
|
9739
|
+
new(): GPUBuffer;
|
|
9740
|
+
};
|
|
9741
|
+
|
|
9742
|
+
/**
|
|
9743
|
+
* Available only in secure contexts.
|
|
9744
|
+
*
|
|
9745
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
9746
|
+
*/
|
|
9747
|
+
interface GPUCanvasContext {
|
|
9748
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas) */
|
|
9749
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
9750
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure) */
|
|
9751
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
9752
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture) */
|
|
9753
|
+
getCurrentTexture(): GPUTexture;
|
|
9754
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure) */
|
|
9755
|
+
unconfigure(): void;
|
|
9756
|
+
}
|
|
9757
|
+
|
|
9758
|
+
declare var GPUCanvasContext: {
|
|
9759
|
+
prototype: GPUCanvasContext;
|
|
9760
|
+
new(): GPUCanvasContext;
|
|
9761
|
+
};
|
|
9762
|
+
|
|
9763
|
+
/**
|
|
9764
|
+
* Available only in secure contexts.
|
|
9765
|
+
*
|
|
9766
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
9767
|
+
*/
|
|
9768
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
9769
|
+
}
|
|
9770
|
+
|
|
9771
|
+
declare var GPUCommandBuffer: {
|
|
9772
|
+
prototype: GPUCommandBuffer;
|
|
9773
|
+
new(): GPUCommandBuffer;
|
|
9774
|
+
};
|
|
9775
|
+
|
|
9776
|
+
/**
|
|
9777
|
+
* Available only in secure contexts.
|
|
9778
|
+
*
|
|
9779
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
9780
|
+
*/
|
|
9781
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
9782
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass) */
|
|
9783
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
9784
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass) */
|
|
9785
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
9786
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer) */
|
|
9787
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
9788
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer) */
|
|
9789
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size: GPUSize64): void;
|
|
9790
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */
|
|
9791
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
9792
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */
|
|
9793
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
9794
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */
|
|
9795
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
9796
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish) */
|
|
9797
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
9798
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet) */
|
|
9799
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
9800
|
+
}
|
|
9801
|
+
|
|
9802
|
+
declare var GPUCommandEncoder: {
|
|
9803
|
+
prototype: GPUCommandEncoder;
|
|
9804
|
+
new(): GPUCommandEncoder;
|
|
9805
|
+
};
|
|
9806
|
+
|
|
9807
|
+
/**
|
|
9808
|
+
* Available only in secure contexts.
|
|
9809
|
+
*
|
|
9810
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
9811
|
+
*/
|
|
9812
|
+
interface GPUCompilationInfo {
|
|
9813
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) */
|
|
9814
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
9815
|
+
}
|
|
9816
|
+
|
|
9817
|
+
declare var GPUCompilationInfo: {
|
|
9818
|
+
prototype: GPUCompilationInfo;
|
|
9819
|
+
new(): GPUCompilationInfo;
|
|
9820
|
+
};
|
|
9821
|
+
|
|
9822
|
+
/**
|
|
9823
|
+
* Available only in secure contexts.
|
|
9824
|
+
*
|
|
9825
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
9826
|
+
*/
|
|
9827
|
+
interface GPUCompilationMessage {
|
|
9828
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) */
|
|
9829
|
+
readonly length: number;
|
|
9830
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) */
|
|
9831
|
+
readonly lineNum: number;
|
|
9832
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) */
|
|
9833
|
+
readonly linePos: number;
|
|
9834
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) */
|
|
9835
|
+
readonly message: string;
|
|
9836
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) */
|
|
9837
|
+
readonly offset: number;
|
|
9838
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) */
|
|
9839
|
+
readonly type: GPUCompilationMessageType;
|
|
9840
|
+
}
|
|
9841
|
+
|
|
9842
|
+
declare var GPUCompilationMessage: {
|
|
9843
|
+
prototype: GPUCompilationMessage;
|
|
9844
|
+
new(): GPUCompilationMessage;
|
|
9845
|
+
};
|
|
9846
|
+
|
|
9847
|
+
/**
|
|
9848
|
+
* Available only in secure contexts.
|
|
9849
|
+
*
|
|
9850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
9851
|
+
*/
|
|
9852
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
9853
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups) */
|
|
9854
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
9855
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect) */
|
|
9856
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
9857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end) */
|
|
9858
|
+
end(): void;
|
|
9859
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline) */
|
|
9860
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
9861
|
+
}
|
|
9862
|
+
|
|
9863
|
+
declare var GPUComputePassEncoder: {
|
|
9864
|
+
prototype: GPUComputePassEncoder;
|
|
9865
|
+
new(): GPUComputePassEncoder;
|
|
9866
|
+
};
|
|
9867
|
+
|
|
9868
|
+
/**
|
|
9869
|
+
* Available only in secure contexts.
|
|
9870
|
+
*
|
|
9871
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
9872
|
+
*/
|
|
9873
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
9874
|
+
}
|
|
9875
|
+
|
|
9876
|
+
declare var GPUComputePipeline: {
|
|
9877
|
+
prototype: GPUComputePipeline;
|
|
9878
|
+
new(): GPUComputePipeline;
|
|
9879
|
+
};
|
|
9880
|
+
|
|
9881
|
+
interface GPUDebugCommandsMixin {
|
|
9882
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
9883
|
+
insertDebugMarker(markerLabel: string): void;
|
|
9884
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
9885
|
+
popDebugGroup(): void;
|
|
9886
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
9887
|
+
pushDebugGroup(groupLabel: string): void;
|
|
9888
|
+
}
|
|
9889
|
+
|
|
9890
|
+
/**
|
|
9891
|
+
* Available only in secure contexts.
|
|
9892
|
+
*
|
|
9893
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
9894
|
+
*/
|
|
9895
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
9896
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features) */
|
|
9897
|
+
readonly features: GPUSupportedFeatures;
|
|
9898
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits) */
|
|
9899
|
+
readonly limits: GPUSupportedLimits;
|
|
9900
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost) */
|
|
9901
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
9902
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */
|
|
9903
|
+
readonly queue: GPUQueue;
|
|
9904
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup) */
|
|
9905
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
9906
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout) */
|
|
9907
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
9908
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer) */
|
|
9909
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
9910
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder) */
|
|
9911
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
9912
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline) */
|
|
9913
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
9914
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync) */
|
|
9915
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
9916
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout) */
|
|
9917
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
9918
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet) */
|
|
9919
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
9920
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder) */
|
|
9921
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
9922
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline) */
|
|
9923
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
9924
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync) */
|
|
9925
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
9926
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler) */
|
|
9927
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
9928
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule) */
|
|
9929
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
9930
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture) */
|
|
9931
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
9932
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) */
|
|
9933
|
+
destroy(): void;
|
|
9934
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) */
|
|
9935
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
9936
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) */
|
|
9937
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
9938
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) */
|
|
9939
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
9940
|
+
}
|
|
9941
|
+
|
|
9942
|
+
declare var GPUDevice: {
|
|
9943
|
+
prototype: GPUDevice;
|
|
9944
|
+
new(): GPUDevice;
|
|
9945
|
+
};
|
|
9946
|
+
|
|
9947
|
+
/**
|
|
9948
|
+
* Available only in secure contexts.
|
|
9949
|
+
*
|
|
9950
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
9951
|
+
*/
|
|
9952
|
+
interface GPUDeviceLostInfo {
|
|
9953
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) */
|
|
9954
|
+
readonly message: string;
|
|
9955
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) */
|
|
9956
|
+
readonly reason: GPUDeviceLostReason;
|
|
9957
|
+
}
|
|
9958
|
+
|
|
9959
|
+
declare var GPUDeviceLostInfo: {
|
|
9960
|
+
prototype: GPUDeviceLostInfo;
|
|
9961
|
+
new(): GPUDeviceLostInfo;
|
|
9962
|
+
};
|
|
9963
|
+
|
|
9964
|
+
/**
|
|
9965
|
+
* Available only in secure contexts.
|
|
9966
|
+
*
|
|
9967
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
|
|
9968
|
+
*/
|
|
9969
|
+
interface GPUError {
|
|
9970
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */
|
|
9971
|
+
readonly message: string;
|
|
9972
|
+
}
|
|
9973
|
+
|
|
9974
|
+
/**
|
|
9975
|
+
* Available only in secure contexts.
|
|
9976
|
+
*
|
|
9977
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
9978
|
+
*/
|
|
9979
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
9980
|
+
}
|
|
9981
|
+
|
|
9982
|
+
declare var GPUExternalTexture: {
|
|
9983
|
+
prototype: GPUExternalTexture;
|
|
9984
|
+
new(): GPUExternalTexture;
|
|
9985
|
+
};
|
|
9986
|
+
|
|
9987
|
+
/**
|
|
9988
|
+
* Available only in secure contexts.
|
|
9989
|
+
*
|
|
9990
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
9991
|
+
*/
|
|
9992
|
+
interface GPUInternalError extends GPUError {
|
|
9993
|
+
}
|
|
9994
|
+
|
|
9995
|
+
declare var GPUInternalError: {
|
|
9996
|
+
prototype: GPUInternalError;
|
|
9997
|
+
new(message: string): GPUInternalError;
|
|
9998
|
+
};
|
|
9999
|
+
|
|
10000
|
+
interface GPUObjectBase {
|
|
10001
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
10002
|
+
label: string;
|
|
10003
|
+
}
|
|
10004
|
+
|
|
10005
|
+
/**
|
|
10006
|
+
* Available only in secure contexts.
|
|
10007
|
+
*
|
|
10008
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
10009
|
+
*/
|
|
10010
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
10011
|
+
}
|
|
10012
|
+
|
|
10013
|
+
declare var GPUOutOfMemoryError: {
|
|
10014
|
+
prototype: GPUOutOfMemoryError;
|
|
10015
|
+
new(message: string): GPUOutOfMemoryError;
|
|
10016
|
+
};
|
|
10017
|
+
|
|
10018
|
+
interface GPUPipelineBase {
|
|
10019
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
10020
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
10021
|
+
}
|
|
10022
|
+
|
|
10023
|
+
/**
|
|
10024
|
+
* Available only in secure contexts.
|
|
10025
|
+
*
|
|
10026
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
10027
|
+
*/
|
|
10028
|
+
interface GPUPipelineError extends DOMException {
|
|
10029
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) */
|
|
10030
|
+
readonly reason: GPUPipelineErrorReason;
|
|
10031
|
+
}
|
|
10032
|
+
|
|
10033
|
+
declare var GPUPipelineError: {
|
|
10034
|
+
prototype: GPUPipelineError;
|
|
10035
|
+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
10036
|
+
};
|
|
10037
|
+
|
|
10038
|
+
/**
|
|
10039
|
+
* Available only in secure contexts.
|
|
10040
|
+
*
|
|
10041
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
10042
|
+
*/
|
|
10043
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
10044
|
+
}
|
|
10045
|
+
|
|
10046
|
+
declare var GPUPipelineLayout: {
|
|
10047
|
+
prototype: GPUPipelineLayout;
|
|
10048
|
+
new(): GPUPipelineLayout;
|
|
10049
|
+
};
|
|
10050
|
+
|
|
10051
|
+
/**
|
|
10052
|
+
* Available only in secure contexts.
|
|
10053
|
+
*
|
|
10054
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
10055
|
+
*/
|
|
10056
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
10057
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count) */
|
|
10058
|
+
readonly count: GPUSize32Out;
|
|
10059
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type) */
|
|
10060
|
+
readonly type: GPUQueryType;
|
|
10061
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy) */
|
|
10062
|
+
destroy(): void;
|
|
10063
|
+
}
|
|
10064
|
+
|
|
10065
|
+
declare var GPUQuerySet: {
|
|
10066
|
+
prototype: GPUQuerySet;
|
|
10067
|
+
new(): GPUQuerySet;
|
|
10068
|
+
};
|
|
10069
|
+
|
|
10070
|
+
/**
|
|
10071
|
+
* Available only in secure contexts.
|
|
10072
|
+
*
|
|
10073
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
10074
|
+
*/
|
|
10075
|
+
interface GPUQueue extends GPUObjectBase {
|
|
10076
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */
|
|
10077
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
10078
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone) */
|
|
10079
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
10080
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */
|
|
10081
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
10082
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer) */
|
|
10083
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
10084
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */
|
|
10085
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
10086
|
+
}
|
|
10087
|
+
|
|
10088
|
+
declare var GPUQueue: {
|
|
10089
|
+
prototype: GPUQueue;
|
|
10090
|
+
new(): GPUQueue;
|
|
10091
|
+
};
|
|
10092
|
+
|
|
10093
|
+
/**
|
|
10094
|
+
* Available only in secure contexts.
|
|
10095
|
+
*
|
|
10096
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
10097
|
+
*/
|
|
10098
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
10099
|
+
}
|
|
10100
|
+
|
|
10101
|
+
declare var GPURenderBundle: {
|
|
10102
|
+
prototype: GPURenderBundle;
|
|
10103
|
+
new(): GPURenderBundle;
|
|
10104
|
+
};
|
|
10105
|
+
|
|
10106
|
+
/**
|
|
10107
|
+
* Available only in secure contexts.
|
|
10108
|
+
*
|
|
10109
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
10110
|
+
*/
|
|
10111
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
10112
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish) */
|
|
10113
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
10114
|
+
}
|
|
10115
|
+
|
|
10116
|
+
declare var GPURenderBundleEncoder: {
|
|
10117
|
+
prototype: GPURenderBundleEncoder;
|
|
10118
|
+
new(): GPURenderBundleEncoder;
|
|
10119
|
+
};
|
|
10120
|
+
|
|
10121
|
+
interface GPURenderCommandsMixin {
|
|
10122
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
10123
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
10124
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
10125
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
10126
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
10127
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
10128
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
10129
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
10130
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
10131
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
10132
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
10133
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
10134
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
10135
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
10136
|
+
}
|
|
10137
|
+
|
|
10138
|
+
/**
|
|
10139
|
+
* Available only in secure contexts.
|
|
10140
|
+
*
|
|
10141
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
10142
|
+
*/
|
|
10143
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
10144
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery) */
|
|
10145
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
10146
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end) */
|
|
10147
|
+
end(): void;
|
|
10148
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery) */
|
|
10149
|
+
endOcclusionQuery(): void;
|
|
10150
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */
|
|
10151
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
10152
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */
|
|
10153
|
+
setBlendConstant(color: GPUColor): void;
|
|
10154
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect) */
|
|
10155
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
10156
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference) */
|
|
10157
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
10158
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport) */
|
|
10159
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
10160
|
+
}
|
|
10161
|
+
|
|
10162
|
+
declare var GPURenderPassEncoder: {
|
|
10163
|
+
prototype: GPURenderPassEncoder;
|
|
10164
|
+
new(): GPURenderPassEncoder;
|
|
10165
|
+
};
|
|
10166
|
+
|
|
10167
|
+
/**
|
|
10168
|
+
* Available only in secure contexts.
|
|
10169
|
+
*
|
|
10170
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
10171
|
+
*/
|
|
10172
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
10173
|
+
}
|
|
10174
|
+
|
|
10175
|
+
declare var GPURenderPipeline: {
|
|
10176
|
+
prototype: GPURenderPipeline;
|
|
10177
|
+
new(): GPURenderPipeline;
|
|
10178
|
+
};
|
|
10179
|
+
|
|
10180
|
+
/**
|
|
10181
|
+
* Available only in secure contexts.
|
|
10182
|
+
*
|
|
10183
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
10184
|
+
*/
|
|
10185
|
+
interface GPUSampler extends GPUObjectBase {
|
|
10186
|
+
}
|
|
10187
|
+
|
|
10188
|
+
declare var GPUSampler: {
|
|
10189
|
+
prototype: GPUSampler;
|
|
10190
|
+
new(): GPUSampler;
|
|
10191
|
+
};
|
|
10192
|
+
|
|
10193
|
+
/**
|
|
10194
|
+
* Available only in secure contexts.
|
|
10195
|
+
*
|
|
10196
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
10197
|
+
*/
|
|
10198
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
10199
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo) */
|
|
10200
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
10201
|
+
}
|
|
10202
|
+
|
|
10203
|
+
declare var GPUShaderModule: {
|
|
10204
|
+
prototype: GPUShaderModule;
|
|
10205
|
+
new(): GPUShaderModule;
|
|
10206
|
+
};
|
|
10207
|
+
|
|
10208
|
+
/**
|
|
10209
|
+
* Available only in secure contexts.
|
|
10210
|
+
*
|
|
10211
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
10212
|
+
*/
|
|
10213
|
+
interface GPUSupportedFeatures {
|
|
10214
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
10215
|
+
}
|
|
10216
|
+
|
|
10217
|
+
declare var GPUSupportedFeatures: {
|
|
10218
|
+
prototype: GPUSupportedFeatures;
|
|
10219
|
+
new(): GPUSupportedFeatures;
|
|
10220
|
+
};
|
|
10221
|
+
|
|
10222
|
+
/**
|
|
10223
|
+
* Available only in secure contexts.
|
|
10224
|
+
*
|
|
10225
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
10226
|
+
*/
|
|
10227
|
+
interface GPUSupportedLimits {
|
|
10228
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10229
|
+
readonly maxBindGroups: number;
|
|
10230
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10231
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
10232
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10233
|
+
readonly maxBindingsPerBindGroup: number;
|
|
10234
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10235
|
+
readonly maxBufferSize: number;
|
|
10236
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10237
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
10238
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10239
|
+
readonly maxColorAttachments: number;
|
|
10240
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10241
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
10242
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10243
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
10244
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10245
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
10246
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10247
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
10248
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10249
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
10250
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10251
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
10252
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10253
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
10254
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10255
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
10256
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10257
|
+
readonly maxInterStageShaderVariables: number;
|
|
10258
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10259
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
10260
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10261
|
+
readonly maxSamplersPerShaderStage: number;
|
|
10262
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10263
|
+
readonly maxStorageBufferBindingSize: number;
|
|
10264
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10265
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
10266
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10267
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
10268
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10269
|
+
readonly maxTextureArrayLayers: number;
|
|
10270
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10271
|
+
readonly maxTextureDimension1D: number;
|
|
10272
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10273
|
+
readonly maxTextureDimension2D: number;
|
|
10274
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10275
|
+
readonly maxTextureDimension3D: number;
|
|
10276
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10277
|
+
readonly maxUniformBufferBindingSize: number;
|
|
10278
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10279
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
10280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10281
|
+
readonly maxVertexAttributes: number;
|
|
10282
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10283
|
+
readonly maxVertexBufferArrayStride: number;
|
|
10284
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10285
|
+
readonly maxVertexBuffers: number;
|
|
10286
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10287
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
10288
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
10289
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
10290
|
+
}
|
|
10291
|
+
|
|
10292
|
+
declare var GPUSupportedLimits: {
|
|
10293
|
+
prototype: GPUSupportedLimits;
|
|
10294
|
+
new(): GPUSupportedLimits;
|
|
10295
|
+
};
|
|
10296
|
+
|
|
10297
|
+
/**
|
|
10298
|
+
* Available only in secure contexts.
|
|
10299
|
+
*
|
|
10300
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
10301
|
+
*/
|
|
10302
|
+
interface GPUTexture extends GPUObjectBase {
|
|
10303
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) */
|
|
10304
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
10305
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) */
|
|
10306
|
+
readonly dimension: GPUTextureDimension;
|
|
10307
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) */
|
|
10308
|
+
readonly format: GPUTextureFormat;
|
|
10309
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) */
|
|
10310
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
10311
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) */
|
|
10312
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
10313
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) */
|
|
10314
|
+
readonly sampleCount: GPUSize32Out;
|
|
10315
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) */
|
|
10316
|
+
readonly usage: GPUFlagsConstant;
|
|
10317
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) */
|
|
10318
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
10319
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) */
|
|
10320
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
10321
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) */
|
|
10322
|
+
destroy(): void;
|
|
10323
|
+
}
|
|
10324
|
+
|
|
10325
|
+
declare var GPUTexture: {
|
|
10326
|
+
prototype: GPUTexture;
|
|
10327
|
+
new(): GPUTexture;
|
|
10328
|
+
};
|
|
10329
|
+
|
|
10330
|
+
/**
|
|
10331
|
+
* Available only in secure contexts.
|
|
10332
|
+
*
|
|
10333
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
10334
|
+
*/
|
|
10335
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
10336
|
+
}
|
|
10337
|
+
|
|
10338
|
+
declare var GPUTextureView: {
|
|
10339
|
+
prototype: GPUTextureView;
|
|
10340
|
+
new(): GPUTextureView;
|
|
10341
|
+
};
|
|
10342
|
+
|
|
10343
|
+
/**
|
|
10344
|
+
* Available only in secure contexts.
|
|
10345
|
+
*
|
|
10346
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
10347
|
+
*/
|
|
10348
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
10349
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) */
|
|
10350
|
+
readonly error: GPUError;
|
|
10351
|
+
}
|
|
10352
|
+
|
|
10353
|
+
declare var GPUUncapturedErrorEvent: {
|
|
10354
|
+
prototype: GPUUncapturedErrorEvent;
|
|
10355
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
10356
|
+
};
|
|
10357
|
+
|
|
10358
|
+
/**
|
|
10359
|
+
* Available only in secure contexts.
|
|
10360
|
+
*
|
|
10361
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
10362
|
+
*/
|
|
10363
|
+
interface GPUValidationError extends GPUError {
|
|
10364
|
+
}
|
|
10365
|
+
|
|
10366
|
+
declare var GPUValidationError: {
|
|
10367
|
+
prototype: GPUValidationError;
|
|
10368
|
+
new(message: string): GPUValidationError;
|
|
10369
|
+
};
|
|
10370
|
+
|
|
9235
10371
|
/**
|
|
9236
10372
|
* 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.
|
|
9237
10373
|
*
|
|
@@ -9907,7 +11043,7 @@ interface GlobalEventHandlers {
|
|
|
9907
11043
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
|
|
9908
11044
|
*/
|
|
9909
11045
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9910
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
11046
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
|
|
9911
11047
|
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9912
11048
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
|
|
9913
11049
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -10086,7 +11222,11 @@ declare var HTMLAnchorElement: {
|
|
|
10086
11222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
|
|
10087
11223
|
*/
|
|
10088
11224
|
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
10089
|
-
/**
|
|
11225
|
+
/**
|
|
11226
|
+
* Sets or retrieves a text alternative to the graphic.
|
|
11227
|
+
*
|
|
11228
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
|
|
11229
|
+
*/
|
|
10090
11230
|
alt: string;
|
|
10091
11231
|
/** Sets or retrieves the coordinates of the object. */
|
|
10092
11232
|
coords: string;
|
|
@@ -10647,7 +11787,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|
|
10647
11787
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
|
|
10648
11788
|
showPopover(): void;
|
|
10649
11789
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
|
|
10650
|
-
togglePopover(
|
|
11790
|
+
togglePopover(options?: boolean): boolean;
|
|
10651
11791
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10652
11792
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10653
11793
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -16641,7 +17781,7 @@ declare var NavigationPreloadManager: {
|
|
|
16641
17781
|
*
|
|
16642
17782
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
16643
17783
|
*/
|
|
16644
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
17784
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
16645
17785
|
/**
|
|
16646
17786
|
* Available only in secure contexts.
|
|
16647
17787
|
*
|
|
@@ -16750,6 +17890,15 @@ interface NavigatorCookies {
|
|
|
16750
17890
|
readonly cookieEnabled: boolean;
|
|
16751
17891
|
}
|
|
16752
17892
|
|
|
17893
|
+
interface NavigatorGPU {
|
|
17894
|
+
/**
|
|
17895
|
+
* Available only in secure contexts.
|
|
17896
|
+
*
|
|
17897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
17898
|
+
*/
|
|
17899
|
+
readonly gpu: GPU;
|
|
17900
|
+
}
|
|
17901
|
+
|
|
16753
17902
|
interface NavigatorID {
|
|
16754
17903
|
/**
|
|
16755
17904
|
* @deprecated
|
|
@@ -24117,6 +25266,20 @@ interface WEBGL_multi_draw {
|
|
|
24117
25266
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
24118
25267
|
}
|
|
24119
25268
|
|
|
25269
|
+
/**
|
|
25270
|
+
* Available only in secure contexts.
|
|
25271
|
+
*
|
|
25272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
25273
|
+
*/
|
|
25274
|
+
interface WGSLLanguageFeatures {
|
|
25275
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
25276
|
+
}
|
|
25277
|
+
|
|
25278
|
+
declare var WGSLLanguageFeatures: {
|
|
25279
|
+
prototype: WGSLLanguageFeatures;
|
|
25280
|
+
new(): WGSLLanguageFeatures;
|
|
25281
|
+
};
|
|
25282
|
+
|
|
24120
25283
|
/**
|
|
24121
25284
|
* Available only in secure contexts.
|
|
24122
25285
|
*
|
|
@@ -28884,7 +30047,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
|
|
|
28884
30047
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
|
|
28885
30048
|
*/
|
|
28886
30049
|
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
|
|
28887
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
30050
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
|
|
28888
30051
|
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
|
|
28889
30052
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
|
|
28890
30053
|
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -29075,6 +30238,31 @@ type GLsizei = number;
|
|
|
29075
30238
|
type GLsizeiptr = number;
|
|
29076
30239
|
type GLuint = number;
|
|
29077
30240
|
type GLuint64 = number;
|
|
30241
|
+
type GPUBindingResource = GPUSampler | GPUTextureView | GPUBufferBinding | GPUExternalTexture;
|
|
30242
|
+
type GPUBufferDynamicOffset = number;
|
|
30243
|
+
type GPUBufferUsageFlags = number;
|
|
30244
|
+
type GPUColor = number[] | GPUColorDict;
|
|
30245
|
+
type GPUColorWriteFlags = number;
|
|
30246
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
30247
|
+
type GPUDepthBias = number;
|
|
30248
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
30249
|
+
type GPUFlagsConstant = number;
|
|
30250
|
+
type GPUIndex32 = number;
|
|
30251
|
+
type GPUIntegerCoordinate = number;
|
|
30252
|
+
type GPUIntegerCoordinateOut = number;
|
|
30253
|
+
type GPUMapModeFlags = number;
|
|
30254
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
30255
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
30256
|
+
type GPUPipelineConstantValue = number;
|
|
30257
|
+
type GPUSampleMask = number;
|
|
30258
|
+
type GPUShaderStageFlags = number;
|
|
30259
|
+
type GPUSignedOffset32 = number;
|
|
30260
|
+
type GPUSize32 = number;
|
|
30261
|
+
type GPUSize32Out = number;
|
|
30262
|
+
type GPUSize64 = number;
|
|
30263
|
+
type GPUSize64Out = number;
|
|
30264
|
+
type GPUStencilValue = number;
|
|
30265
|
+
type GPUTextureUsageFlags = number;
|
|
29078
30266
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
29079
30267
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
29080
30268
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
@@ -29088,7 +30276,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
29088
30276
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
29089
30277
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
29090
30278
|
type NamedCurve = string;
|
|
29091
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
30279
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
29092
30280
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
29093
30281
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
29094
30282
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
@@ -29099,7 +30287,7 @@ type RTCRtpTransform = RTCRtpScriptTransform;
|
|
|
29099
30287
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
29100
30288
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
29101
30289
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
29102
|
-
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
30290
|
+
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
29103
30291
|
type ReportList = Report[];
|
|
29104
30292
|
type RequestInfo = Request | string;
|
|
29105
30293
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
|
|
@@ -29171,6 +30359,40 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
29171
30359
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
29172
30360
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
29173
30361
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
30362
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
30363
|
+
type GPUAutoLayoutMode = "auto";
|
|
30364
|
+
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";
|
|
30365
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
30366
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
30367
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
30368
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
30369
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
30370
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
30371
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
30372
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
30373
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
30374
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
30375
|
+
type GPUFeatureName = "bgra8unorm-storage" | "depth-clip-control" | "depth32float-stencil8" | "float32-filterable" | "indirect-first-instance" | "rg11b10ufloat-renderable" | "shader-f16" | "texture-compression-astc" | "texture-compression-bc" | "texture-compression-etc2" | "timestamp-query";
|
|
30376
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
30377
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
30378
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
30379
|
+
type GPULoadOp = "clear" | "load";
|
|
30380
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
30381
|
+
type GPUPipelineErrorReason = "internal" | "validation";
|
|
30382
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
30383
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
30384
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
30385
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
30386
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
30387
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
30388
|
+
type GPUStoreOp = "discard" | "store";
|
|
30389
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
30390
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
30391
|
+
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" | "r16uint" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16uint" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16uint" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
30392
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
30393
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
30394
|
+
type GPUVertexFormat = "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8x2" | "sint8x4" | "snorm16x2" | "snorm16x4" | "snorm8x2" | "snorm8x4" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16x2" | "unorm16x4" | "unorm8x2" | "unorm8x4";
|
|
30395
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
29174
30396
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
29175
30397
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
29176
30398
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|