Skip to content

Commit 2a24a64

Browse files
authored
Add GPUComputePassEncoder (#2383)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 33dbb85 commit 2a24a64

29 files changed

+976
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14782,6 +14782,12 @@ declare var GPUBindGroupLayout: {
1478214782
new(): GPUBindGroupLayout;
1478314783
};
1478414784

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+
1478514791
/**
1478614792
* 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.
1478714793
* Available only in secure contexts.
@@ -14922,6 +14928,44 @@ declare var GPUCompilationMessage: {
1492214928
new(): GPUCompilationMessage;
1492314929
};
1492414930

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+
1492514969
/**
1492614970
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
1492714971
* Available only in secure contexts.
@@ -14936,6 +14980,15 @@ declare var GPUComputePipeline: {
1493614980
new(): GPUComputePipeline;
1493714981
};
1493814982

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+
1493914992
/**
1494014993
* 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.
1494114994
* Available only in secure contexts.
@@ -43190,10 +43243,13 @@ type GLsizei = number;
4319043243
type GLsizeiptr = number;
4319143244
type GLuint = number;
4319243245
type GLuint64 = number;
43246+
type GPUBufferDynamicOffset = number;
4319343247
type GPUFlagsConstant = number;
43248+
type GPUIndex32 = number;
4319443249
type GPUIntegerCoordinate = number;
4319543250
type GPUIntegerCoordinateOut = number;
4319643251
type GPUMapModeFlags = number;
43252+
type GPUSize32 = number;
4319743253
type GPUSize32Out = number;
4319843254
type GPUSize64 = number;
4319943255
type GPUSize64Out = number;
@@ -43597,6 +43653,11 @@ interface FormData {
4359743653
values(): FormDataIterator<FormDataEntryValue>;
4359843654
}
4359943655

43656+
interface GPUBindingCommandsMixin {
43657+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
43658+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
43659+
}
43660+
4360043661
interface GPUSupportedFeatures extends ReadonlySet<string> {
4360143662
}
4360243663

baselines/serviceworker.generated.d.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4225,6 +4225,12 @@ declare var GPUBindGroupLayout: {
42254225
new(): GPUBindGroupLayout;
42264226
};
42274227

4228+
interface GPUBindingCommandsMixin {
4229+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
4230+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
4231+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
4232+
}
4233+
42284234
/**
42294235
* 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.
42304236
* Available only in secure contexts.
@@ -4365,6 +4371,44 @@ declare var GPUCompilationMessage: {
43654371
new(): GPUCompilationMessage;
43664372
};
43674373

4374+
/**
4375+
* 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.
4376+
* Available only in secure contexts.
4377+
*
4378+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4379+
*/
4380+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4381+
/**
4382+
* 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()).
4383+
*
4384+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4385+
*/
4386+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4387+
/**
4388+
* 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()).
4389+
*
4390+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4391+
*/
4392+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4393+
/**
4394+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4395+
*
4396+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4397+
*/
4398+
end(): void;
4399+
/**
4400+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4401+
*
4402+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4403+
*/
4404+
setPipeline(pipeline: GPUComputePipeline): void;
4405+
}
4406+
4407+
declare var GPUComputePassEncoder: {
4408+
prototype: GPUComputePassEncoder;
4409+
new(): GPUComputePassEncoder;
4410+
};
4411+
43684412
/**
43694413
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
43704414
* Available only in secure contexts.
@@ -4379,6 +4423,15 @@ declare var GPUComputePipeline: {
43794423
new(): GPUComputePipeline;
43804424
};
43814425

4426+
interface GPUDebugCommandsMixin {
4427+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4428+
insertDebugMarker(markerLabel: string): void;
4429+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4430+
popDebugGroup(): void;
4431+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4432+
pushDebugGroup(groupLabel: string): void;
4433+
}
4434+
43824435
/**
43834436
* 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.
43844437
* Available only in secure contexts.
@@ -12389,10 +12442,13 @@ type GLsizei = number;
1238912442
type GLsizeiptr = number;
1239012443
type GLuint = number;
1239112444
type GLuint64 = number;
12445+
type GPUBufferDynamicOffset = number;
1239212446
type GPUFlagsConstant = number;
12447+
type GPUIndex32 = number;
1239312448
type GPUIntegerCoordinate = number;
1239412449
type GPUIntegerCoordinateOut = number;
1239512450
type GPUMapModeFlags = number;
12451+
type GPUSize32 = number;
1239612452
type GPUSize32Out = number;
1239712453
type GPUSize64 = number;
1239812454
type GPUSize64Out = number;
@@ -12585,6 +12641,11 @@ interface FormData {
1258512641
values(): FormDataIterator<FormDataEntryValue>;
1258612642
}
1258712643

12644+
interface GPUBindingCommandsMixin {
12645+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
12646+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
12647+
}
12648+
1258812649
interface GPUSupportedFeatures extends ReadonlySet<string> {
1258912650
}
1259012651

baselines/sharedworker.generated.d.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,6 +3908,12 @@ declare var GPUBindGroupLayout: {
39083908
new(): GPUBindGroupLayout;
39093909
};
39103910

3911+
interface GPUBindingCommandsMixin {
3912+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3913+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3914+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3915+
}
3916+
39113917
/**
39123918
* 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.
39133919
* Available only in secure contexts.
@@ -4048,6 +4054,44 @@ declare var GPUCompilationMessage: {
40484054
new(): GPUCompilationMessage;
40494055
};
40504056

4057+
/**
4058+
* 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.
4059+
* Available only in secure contexts.
4060+
*
4061+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
4062+
*/
4063+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
4064+
/**
4065+
* 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()).
4066+
*
4067+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
4068+
*/
4069+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
4070+
/**
4071+
* 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()).
4072+
*
4073+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
4074+
*/
4075+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
4076+
/**
4077+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
4078+
*
4079+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
4080+
*/
4081+
end(): void;
4082+
/**
4083+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
4084+
*
4085+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
4086+
*/
4087+
setPipeline(pipeline: GPUComputePipeline): void;
4088+
}
4089+
4090+
declare var GPUComputePassEncoder: {
4091+
prototype: GPUComputePassEncoder;
4092+
new(): GPUComputePassEncoder;
4093+
};
4094+
40514095
/**
40524096
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
40534097
* Available only in secure contexts.
@@ -4062,6 +4106,15 @@ declare var GPUComputePipeline: {
40624106
new(): GPUComputePipeline;
40634107
};
40644108

4109+
interface GPUDebugCommandsMixin {
4110+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
4111+
insertDebugMarker(markerLabel: string): void;
4112+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
4113+
popDebugGroup(): void;
4114+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
4115+
pushDebugGroup(groupLabel: string): void;
4116+
}
4117+
40654118
/**
40664119
* 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.
40674120
* Available only in secure contexts.
@@ -12059,10 +12112,13 @@ type GLsizei = number;
1205912112
type GLsizeiptr = number;
1206012113
type GLuint = number;
1206112114
type GLuint64 = number;
12115+
type GPUBufferDynamicOffset = number;
1206212116
type GPUFlagsConstant = number;
12117+
type GPUIndex32 = number;
1206312118
type GPUIntegerCoordinate = number;
1206412119
type GPUIntegerCoordinateOut = number;
1206512120
type GPUMapModeFlags = number;
12121+
type GPUSize32 = number;
1206612122
type GPUSize32Out = number;
1206712123
type GPUSize64 = number;
1206812124
type GPUSize64Out = number;
@@ -12237,6 +12293,11 @@ interface FormData {
1223712293
values(): FormDataIterator<FormDataEntryValue>;
1223812294
}
1223912295

12296+
interface GPUBindingCommandsMixin {
12297+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
12298+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
12299+
}
12300+
1224012301
interface GPUSupportedFeatures extends ReadonlySet<string> {
1224112302
}
1224212303

baselines/ts5.5/dom.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14768,6 +14768,12 @@ declare var GPUBindGroupLayout: {
1476814768
new(): GPUBindGroupLayout;
1476914769
};
1477014770

14771+
interface GPUBindingCommandsMixin {
14772+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
14773+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
14774+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
14775+
}
14776+
1477114777
/**
1477214778
* 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.
1477314779
* Available only in secure contexts.
@@ -14908,6 +14914,44 @@ declare var GPUCompilationMessage: {
1490814914
new(): GPUCompilationMessage;
1490914915
};
1491014916

14917+
/**
14918+
* 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.
14919+
* Available only in secure contexts.
14920+
*
14921+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
14922+
*/
14923+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
14924+
/**
14925+
* 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()).
14926+
*
14927+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
14928+
*/
14929+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
14930+
/**
14931+
* 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()).
14932+
*
14933+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
14934+
*/
14935+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
14936+
/**
14937+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
14938+
*
14939+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
14940+
*/
14941+
end(): void;
14942+
/**
14943+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
14944+
*
14945+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
14946+
*/
14947+
setPipeline(pipeline: GPUComputePipeline): void;
14948+
}
14949+
14950+
declare var GPUComputePassEncoder: {
14951+
prototype: GPUComputePassEncoder;
14952+
new(): GPUComputePassEncoder;
14953+
};
14954+
1491114955
/**
1491214956
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
1491314957
* Available only in secure contexts.
@@ -14922,6 +14966,15 @@ declare var GPUComputePipeline: {
1492214966
new(): GPUComputePipeline;
1492314967
};
1492414968

14969+
interface GPUDebugCommandsMixin {
14970+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
14971+
insertDebugMarker(markerLabel: string): void;
14972+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
14973+
popDebugGroup(): void;
14974+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
14975+
pushDebugGroup(groupLabel: string): void;
14976+
}
14977+
1492514978
/**
1492614979
* 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.
1492714980
* Available only in secure contexts.
@@ -43164,10 +43217,13 @@ type GLsizei = number;
4316443217
type GLsizeiptr = number;
4316543218
type GLuint = number;
4316643219
type GLuint64 = number;
43220+
type GPUBufferDynamicOffset = number;
4316743221
type GPUFlagsConstant = number;
43222+
type GPUIndex32 = number;
4316843223
type GPUIntegerCoordinate = number;
4316943224
type GPUIntegerCoordinateOut = number;
4317043225
type GPUMapModeFlags = number;
43226+
type GPUSize32 = number;
4317143227
type GPUSize32Out = number;
4317243228
type GPUSize64 = number;
4317343229
type GPUSize64Out = number;

baselines/ts5.5/dom.iterable.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ interface FormData {
138138
values(): IterableIterator<FormDataEntryValue>;
139139
}
140140

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+
141146
interface GPUSupportedFeatures extends ReadonlySet<string> {
142147
}
143148

0 commit comments

Comments
 (0)