@types/web 0.0.320 → 0.0.321
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 +94 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +89 -0
- package/ts5.5/iterable.d.ts +5 -0
- package/ts5.6/index.d.ts +89 -0
- package/ts5.6/iterable.d.ts +5 -0
- package/ts5.9/index.d.ts +89 -0
- package/ts5.9/iterable.d.ts +5 -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.321 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.321.
|
package/index.d.ts
CHANGED
|
@@ -14785,6 +14785,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14785
14785
|
new(): GPUBindGroupLayout;
|
|
14786
14786
|
};
|
|
14787
14787
|
|
|
14788
|
+
interface GPUBindingCommandsMixin {
|
|
14789
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14790
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14791
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14792
|
+
}
|
|
14793
|
+
|
|
14788
14794
|
/**
|
|
14789
14795
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14790
14796
|
* Available only in secure contexts.
|
|
@@ -14925,6 +14931,44 @@ declare var GPUCompilationMessage: {
|
|
|
14925
14931
|
new(): GPUCompilationMessage;
|
|
14926
14932
|
};
|
|
14927
14933
|
|
|
14934
|
+
/**
|
|
14935
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14936
|
+
* Available only in secure contexts.
|
|
14937
|
+
*
|
|
14938
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14939
|
+
*/
|
|
14940
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14941
|
+
/**
|
|
14942
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14943
|
+
*
|
|
14944
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14945
|
+
*/
|
|
14946
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14947
|
+
/**
|
|
14948
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14949
|
+
*
|
|
14950
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14951
|
+
*/
|
|
14952
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14953
|
+
/**
|
|
14954
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14955
|
+
*
|
|
14956
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14957
|
+
*/
|
|
14958
|
+
end(): void;
|
|
14959
|
+
/**
|
|
14960
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14961
|
+
*
|
|
14962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14963
|
+
*/
|
|
14964
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14965
|
+
}
|
|
14966
|
+
|
|
14967
|
+
declare var GPUComputePassEncoder: {
|
|
14968
|
+
prototype: GPUComputePassEncoder;
|
|
14969
|
+
new(): GPUComputePassEncoder;
|
|
14970
|
+
};
|
|
14971
|
+
|
|
14928
14972
|
/**
|
|
14929
14973
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14930
14974
|
* Available only in secure contexts.
|
|
@@ -14939,6 +14983,15 @@ declare var GPUComputePipeline: {
|
|
|
14939
14983
|
new(): GPUComputePipeline;
|
|
14940
14984
|
};
|
|
14941
14985
|
|
|
14986
|
+
interface GPUDebugCommandsMixin {
|
|
14987
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14988
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14989
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
14990
|
+
popDebugGroup(): void;
|
|
14991
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
14992
|
+
pushDebugGroup(groupLabel: string): void;
|
|
14993
|
+
}
|
|
14994
|
+
|
|
14942
14995
|
/**
|
|
14943
14996
|
* 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.
|
|
14944
14997
|
* Available only in secure contexts.
|
|
@@ -15071,6 +15124,38 @@ declare var GPUPipelineLayout: {
|
|
|
15071
15124
|
new(): GPUPipelineLayout;
|
|
15072
15125
|
};
|
|
15073
15126
|
|
|
15127
|
+
/**
|
|
15128
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15129
|
+
* Available only in secure contexts.
|
|
15130
|
+
*
|
|
15131
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15132
|
+
*/
|
|
15133
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15134
|
+
/**
|
|
15135
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15136
|
+
*
|
|
15137
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15138
|
+
*/
|
|
15139
|
+
readonly count: GPUSize32Out;
|
|
15140
|
+
/**
|
|
15141
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15142
|
+
*
|
|
15143
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15144
|
+
*/
|
|
15145
|
+
readonly type: GPUQueryType;
|
|
15146
|
+
/**
|
|
15147
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15148
|
+
*
|
|
15149
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15150
|
+
*/
|
|
15151
|
+
destroy(): void;
|
|
15152
|
+
}
|
|
15153
|
+
|
|
15154
|
+
declare var GPUQuerySet: {
|
|
15155
|
+
prototype: GPUQuerySet;
|
|
15156
|
+
new(): GPUQuerySet;
|
|
15157
|
+
};
|
|
15158
|
+
|
|
15074
15159
|
/**
|
|
15075
15160
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15076
15161
|
* Available only in secure contexts.
|
|
@@ -43161,10 +43246,13 @@ type GLsizei = number;
|
|
|
43161
43246
|
type GLsizeiptr = number;
|
|
43162
43247
|
type GLuint = number;
|
|
43163
43248
|
type GLuint64 = number;
|
|
43249
|
+
type GPUBufferDynamicOffset = number;
|
|
43164
43250
|
type GPUFlagsConstant = number;
|
|
43251
|
+
type GPUIndex32 = number;
|
|
43165
43252
|
type GPUIntegerCoordinate = number;
|
|
43166
43253
|
type GPUIntegerCoordinateOut = number;
|
|
43167
43254
|
type GPUMapModeFlags = number;
|
|
43255
|
+
type GPUSize32 = number;
|
|
43168
43256
|
type GPUSize32Out = number;
|
|
43169
43257
|
type GPUSize64 = number;
|
|
43170
43258
|
type GPUSize64Out = number;
|
|
@@ -43279,6 +43367,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
43279
43367
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43280
43368
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43281
43369
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43370
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43282
43371
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43283
43372
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43284
43373
|
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";
|
|
@@ -43567,6 +43656,11 @@ interface FormData {
|
|
|
43567
43656
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
43568
43657
|
}
|
|
43569
43658
|
|
|
43659
|
+
interface GPUBindingCommandsMixin {
|
|
43660
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
43661
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
43662
|
+
}
|
|
43663
|
+
|
|
43570
43664
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
43571
43665
|
}
|
|
43572
43666
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -14771,6 +14771,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14771
14771
|
new(): GPUBindGroupLayout;
|
|
14772
14772
|
};
|
|
14773
14773
|
|
|
14774
|
+
interface GPUBindingCommandsMixin {
|
|
14775
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14776
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14777
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14778
|
+
}
|
|
14779
|
+
|
|
14774
14780
|
/**
|
|
14775
14781
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14776
14782
|
* Available only in secure contexts.
|
|
@@ -14911,6 +14917,44 @@ declare var GPUCompilationMessage: {
|
|
|
14911
14917
|
new(): GPUCompilationMessage;
|
|
14912
14918
|
};
|
|
14913
14919
|
|
|
14920
|
+
/**
|
|
14921
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14922
|
+
* Available only in secure contexts.
|
|
14923
|
+
*
|
|
14924
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14925
|
+
*/
|
|
14926
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14927
|
+
/**
|
|
14928
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14929
|
+
*
|
|
14930
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14931
|
+
*/
|
|
14932
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14933
|
+
/**
|
|
14934
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14935
|
+
*
|
|
14936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14937
|
+
*/
|
|
14938
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14939
|
+
/**
|
|
14940
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14941
|
+
*
|
|
14942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14943
|
+
*/
|
|
14944
|
+
end(): void;
|
|
14945
|
+
/**
|
|
14946
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14947
|
+
*
|
|
14948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14949
|
+
*/
|
|
14950
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14951
|
+
}
|
|
14952
|
+
|
|
14953
|
+
declare var GPUComputePassEncoder: {
|
|
14954
|
+
prototype: GPUComputePassEncoder;
|
|
14955
|
+
new(): GPUComputePassEncoder;
|
|
14956
|
+
};
|
|
14957
|
+
|
|
14914
14958
|
/**
|
|
14915
14959
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14916
14960
|
* Available only in secure contexts.
|
|
@@ -14925,6 +14969,15 @@ declare var GPUComputePipeline: {
|
|
|
14925
14969
|
new(): GPUComputePipeline;
|
|
14926
14970
|
};
|
|
14927
14971
|
|
|
14972
|
+
interface GPUDebugCommandsMixin {
|
|
14973
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14974
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14975
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
14976
|
+
popDebugGroup(): void;
|
|
14977
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
14978
|
+
pushDebugGroup(groupLabel: string): void;
|
|
14979
|
+
}
|
|
14980
|
+
|
|
14928
14981
|
/**
|
|
14929
14982
|
* 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.
|
|
14930
14983
|
* Available only in secure contexts.
|
|
@@ -15057,6 +15110,38 @@ declare var GPUPipelineLayout: {
|
|
|
15057
15110
|
new(): GPUPipelineLayout;
|
|
15058
15111
|
};
|
|
15059
15112
|
|
|
15113
|
+
/**
|
|
15114
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15115
|
+
* Available only in secure contexts.
|
|
15116
|
+
*
|
|
15117
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15118
|
+
*/
|
|
15119
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15120
|
+
/**
|
|
15121
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15122
|
+
*
|
|
15123
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15124
|
+
*/
|
|
15125
|
+
readonly count: GPUSize32Out;
|
|
15126
|
+
/**
|
|
15127
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15128
|
+
*
|
|
15129
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15130
|
+
*/
|
|
15131
|
+
readonly type: GPUQueryType;
|
|
15132
|
+
/**
|
|
15133
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15134
|
+
*
|
|
15135
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15136
|
+
*/
|
|
15137
|
+
destroy(): void;
|
|
15138
|
+
}
|
|
15139
|
+
|
|
15140
|
+
declare var GPUQuerySet: {
|
|
15141
|
+
prototype: GPUQuerySet;
|
|
15142
|
+
new(): GPUQuerySet;
|
|
15143
|
+
};
|
|
15144
|
+
|
|
15060
15145
|
/**
|
|
15061
15146
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15062
15147
|
* Available only in secure contexts.
|
|
@@ -43135,10 +43220,13 @@ type GLsizei = number;
|
|
|
43135
43220
|
type GLsizeiptr = number;
|
|
43136
43221
|
type GLuint = number;
|
|
43137
43222
|
type GLuint64 = number;
|
|
43223
|
+
type GPUBufferDynamicOffset = number;
|
|
43138
43224
|
type GPUFlagsConstant = number;
|
|
43225
|
+
type GPUIndex32 = number;
|
|
43139
43226
|
type GPUIntegerCoordinate = number;
|
|
43140
43227
|
type GPUIntegerCoordinateOut = number;
|
|
43141
43228
|
type GPUMapModeFlags = number;
|
|
43229
|
+
type GPUSize32 = number;
|
|
43142
43230
|
type GPUSize32Out = number;
|
|
43143
43231
|
type GPUSize64 = number;
|
|
43144
43232
|
type GPUSize64Out = number;
|
|
@@ -43253,6 +43341,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
43253
43341
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43254
43342
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43255
43343
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43344
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43256
43345
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43257
43346
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43258
43347
|
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";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -138,6 +138,11 @@ interface FormData {
|
|
|
138
138
|
values(): IterableIterator<FormDataEntryValue>;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
interface GPUBindingCommandsMixin {
|
|
142
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
143
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
144
|
+
}
|
|
145
|
+
|
|
141
146
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
142
147
|
}
|
|
143
148
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -14782,6 +14782,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14782
14782
|
new(): GPUBindGroupLayout;
|
|
14783
14783
|
};
|
|
14784
14784
|
|
|
14785
|
+
interface GPUBindingCommandsMixin {
|
|
14786
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14787
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14788
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14789
|
+
}
|
|
14790
|
+
|
|
14785
14791
|
/**
|
|
14786
14792
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14787
14793
|
* Available only in secure contexts.
|
|
@@ -14922,6 +14928,44 @@ declare var GPUCompilationMessage: {
|
|
|
14922
14928
|
new(): GPUCompilationMessage;
|
|
14923
14929
|
};
|
|
14924
14930
|
|
|
14931
|
+
/**
|
|
14932
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14933
|
+
* Available only in secure contexts.
|
|
14934
|
+
*
|
|
14935
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14936
|
+
*/
|
|
14937
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14938
|
+
/**
|
|
14939
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14940
|
+
*
|
|
14941
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14942
|
+
*/
|
|
14943
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14944
|
+
/**
|
|
14945
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14946
|
+
*
|
|
14947
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14948
|
+
*/
|
|
14949
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14950
|
+
/**
|
|
14951
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14952
|
+
*
|
|
14953
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14954
|
+
*/
|
|
14955
|
+
end(): void;
|
|
14956
|
+
/**
|
|
14957
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14958
|
+
*
|
|
14959
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14960
|
+
*/
|
|
14961
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14962
|
+
}
|
|
14963
|
+
|
|
14964
|
+
declare var GPUComputePassEncoder: {
|
|
14965
|
+
prototype: GPUComputePassEncoder;
|
|
14966
|
+
new(): GPUComputePassEncoder;
|
|
14967
|
+
};
|
|
14968
|
+
|
|
14925
14969
|
/**
|
|
14926
14970
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14927
14971
|
* Available only in secure contexts.
|
|
@@ -14936,6 +14980,15 @@ declare var GPUComputePipeline: {
|
|
|
14936
14980
|
new(): GPUComputePipeline;
|
|
14937
14981
|
};
|
|
14938
14982
|
|
|
14983
|
+
interface GPUDebugCommandsMixin {
|
|
14984
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14985
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14986
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
14987
|
+
popDebugGroup(): void;
|
|
14988
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
14989
|
+
pushDebugGroup(groupLabel: string): void;
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14939
14992
|
/**
|
|
14940
14993
|
* 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.
|
|
14941
14994
|
* Available only in secure contexts.
|
|
@@ -15068,6 +15121,38 @@ declare var GPUPipelineLayout: {
|
|
|
15068
15121
|
new(): GPUPipelineLayout;
|
|
15069
15122
|
};
|
|
15070
15123
|
|
|
15124
|
+
/**
|
|
15125
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15126
|
+
* Available only in secure contexts.
|
|
15127
|
+
*
|
|
15128
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15129
|
+
*/
|
|
15130
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15131
|
+
/**
|
|
15132
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15133
|
+
*
|
|
15134
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15135
|
+
*/
|
|
15136
|
+
readonly count: GPUSize32Out;
|
|
15137
|
+
/**
|
|
15138
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15139
|
+
*
|
|
15140
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15141
|
+
*/
|
|
15142
|
+
readonly type: GPUQueryType;
|
|
15143
|
+
/**
|
|
15144
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15145
|
+
*
|
|
15146
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15147
|
+
*/
|
|
15148
|
+
destroy(): void;
|
|
15149
|
+
}
|
|
15150
|
+
|
|
15151
|
+
declare var GPUQuerySet: {
|
|
15152
|
+
prototype: GPUQuerySet;
|
|
15153
|
+
new(): GPUQuerySet;
|
|
15154
|
+
};
|
|
15155
|
+
|
|
15071
15156
|
/**
|
|
15072
15157
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15073
15158
|
* Available only in secure contexts.
|
|
@@ -43158,10 +43243,13 @@ type GLsizei = number;
|
|
|
43158
43243
|
type GLsizeiptr = number;
|
|
43159
43244
|
type GLuint = number;
|
|
43160
43245
|
type GLuint64 = number;
|
|
43246
|
+
type GPUBufferDynamicOffset = number;
|
|
43161
43247
|
type GPUFlagsConstant = number;
|
|
43248
|
+
type GPUIndex32 = number;
|
|
43162
43249
|
type GPUIntegerCoordinate = number;
|
|
43163
43250
|
type GPUIntegerCoordinateOut = number;
|
|
43164
43251
|
type GPUMapModeFlags = number;
|
|
43252
|
+
type GPUSize32 = number;
|
|
43165
43253
|
type GPUSize32Out = number;
|
|
43166
43254
|
type GPUSize64 = number;
|
|
43167
43255
|
type GPUSize64Out = number;
|
|
@@ -43276,6 +43364,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
43276
43364
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43277
43365
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43278
43366
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43367
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43279
43368
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43280
43369
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43281
43370
|
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";
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -142,6 +142,11 @@ interface FormData {
|
|
|
142
142
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
interface GPUBindingCommandsMixin {
|
|
146
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
147
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
148
|
+
}
|
|
149
|
+
|
|
145
150
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
146
151
|
}
|
|
147
152
|
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -14782,6 +14782,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14782
14782
|
new(): GPUBindGroupLayout;
|
|
14783
14783
|
};
|
|
14784
14784
|
|
|
14785
|
+
interface GPUBindingCommandsMixin {
|
|
14786
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14787
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14788
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14789
|
+
}
|
|
14790
|
+
|
|
14785
14791
|
/**
|
|
14786
14792
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14787
14793
|
* Available only in secure contexts.
|
|
@@ -14922,6 +14928,44 @@ declare var GPUCompilationMessage: {
|
|
|
14922
14928
|
new(): GPUCompilationMessage;
|
|
14923
14929
|
};
|
|
14924
14930
|
|
|
14931
|
+
/**
|
|
14932
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14933
|
+
* Available only in secure contexts.
|
|
14934
|
+
*
|
|
14935
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14936
|
+
*/
|
|
14937
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14938
|
+
/**
|
|
14939
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14940
|
+
*
|
|
14941
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14942
|
+
*/
|
|
14943
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14944
|
+
/**
|
|
14945
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14946
|
+
*
|
|
14947
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14948
|
+
*/
|
|
14949
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14950
|
+
/**
|
|
14951
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14952
|
+
*
|
|
14953
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14954
|
+
*/
|
|
14955
|
+
end(): void;
|
|
14956
|
+
/**
|
|
14957
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14958
|
+
*
|
|
14959
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14960
|
+
*/
|
|
14961
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14962
|
+
}
|
|
14963
|
+
|
|
14964
|
+
declare var GPUComputePassEncoder: {
|
|
14965
|
+
prototype: GPUComputePassEncoder;
|
|
14966
|
+
new(): GPUComputePassEncoder;
|
|
14967
|
+
};
|
|
14968
|
+
|
|
14925
14969
|
/**
|
|
14926
14970
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14927
14971
|
* Available only in secure contexts.
|
|
@@ -14936,6 +14980,15 @@ declare var GPUComputePipeline: {
|
|
|
14936
14980
|
new(): GPUComputePipeline;
|
|
14937
14981
|
};
|
|
14938
14982
|
|
|
14983
|
+
interface GPUDebugCommandsMixin {
|
|
14984
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14985
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14986
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
14987
|
+
popDebugGroup(): void;
|
|
14988
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
14989
|
+
pushDebugGroup(groupLabel: string): void;
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14939
14992
|
/**
|
|
14940
14993
|
* 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.
|
|
14941
14994
|
* Available only in secure contexts.
|
|
@@ -15068,6 +15121,38 @@ declare var GPUPipelineLayout: {
|
|
|
15068
15121
|
new(): GPUPipelineLayout;
|
|
15069
15122
|
};
|
|
15070
15123
|
|
|
15124
|
+
/**
|
|
15125
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15126
|
+
* Available only in secure contexts.
|
|
15127
|
+
*
|
|
15128
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15129
|
+
*/
|
|
15130
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15131
|
+
/**
|
|
15132
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15133
|
+
*
|
|
15134
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15135
|
+
*/
|
|
15136
|
+
readonly count: GPUSize32Out;
|
|
15137
|
+
/**
|
|
15138
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15139
|
+
*
|
|
15140
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15141
|
+
*/
|
|
15142
|
+
readonly type: GPUQueryType;
|
|
15143
|
+
/**
|
|
15144
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15145
|
+
*
|
|
15146
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15147
|
+
*/
|
|
15148
|
+
destroy(): void;
|
|
15149
|
+
}
|
|
15150
|
+
|
|
15151
|
+
declare var GPUQuerySet: {
|
|
15152
|
+
prototype: GPUQuerySet;
|
|
15153
|
+
new(): GPUQuerySet;
|
|
15154
|
+
};
|
|
15155
|
+
|
|
15071
15156
|
/**
|
|
15072
15157
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15073
15158
|
* Available only in secure contexts.
|
|
@@ -43158,10 +43243,13 @@ type GLsizei = number;
|
|
|
43158
43243
|
type GLsizeiptr = number;
|
|
43159
43244
|
type GLuint = number;
|
|
43160
43245
|
type GLuint64 = number;
|
|
43246
|
+
type GPUBufferDynamicOffset = number;
|
|
43161
43247
|
type GPUFlagsConstant = number;
|
|
43248
|
+
type GPUIndex32 = number;
|
|
43162
43249
|
type GPUIntegerCoordinate = number;
|
|
43163
43250
|
type GPUIntegerCoordinateOut = number;
|
|
43164
43251
|
type GPUMapModeFlags = number;
|
|
43252
|
+
type GPUSize32 = number;
|
|
43165
43253
|
type GPUSize32Out = number;
|
|
43166
43254
|
type GPUSize64 = number;
|
|
43167
43255
|
type GPUSize64Out = number;
|
|
@@ -43276,6 +43364,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
43276
43364
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43277
43365
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43278
43366
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43367
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43279
43368
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43280
43369
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43281
43370
|
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";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -142,6 +142,11 @@ interface FormData {
|
|
|
142
142
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
interface GPUBindingCommandsMixin {
|
|
146
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
147
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
148
|
+
}
|
|
149
|
+
|
|
145
150
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
146
151
|
}
|
|
147
152
|
|