Skip to content

Commit da7684b

Browse files
authored
Add GPUSupportedLimits (#2366)
Co-authored-by: saschanaz <[email protected]>
1 parent f37dc53 commit da7684b

17 files changed

+1216
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14950,6 +14950,82 @@ declare var GPUSupportedFeatures: {
1495014950
new(): GPUSupportedFeatures;
1495114951
};
1495214952

14953+
/**
14954+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
14955+
* Available only in secure contexts.
14956+
*
14957+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
14958+
*/
14959+
interface GPUSupportedLimits {
14960+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14961+
readonly maxBindGroups: number;
14962+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14963+
readonly maxBindGroupsPlusVertexBuffers: number;
14964+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14965+
readonly maxBindingsPerBindGroup: number;
14966+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14967+
readonly maxBufferSize: number;
14968+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14969+
readonly maxColorAttachmentBytesPerSample: number;
14970+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14971+
readonly maxColorAttachments: number;
14972+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14973+
readonly maxComputeInvocationsPerWorkgroup: number;
14974+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14975+
readonly maxComputeWorkgroupSizeX: number;
14976+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14977+
readonly maxComputeWorkgroupSizeY: number;
14978+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14979+
readonly maxComputeWorkgroupSizeZ: number;
14980+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14981+
readonly maxComputeWorkgroupStorageSize: number;
14982+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14983+
readonly maxComputeWorkgroupsPerDimension: number;
14984+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14985+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
14986+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14987+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
14988+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14989+
readonly maxInterStageShaderVariables: number;
14990+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14991+
readonly maxSampledTexturesPerShaderStage: number;
14992+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14993+
readonly maxSamplersPerShaderStage: number;
14994+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14995+
readonly maxStorageBufferBindingSize: number;
14996+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14997+
readonly maxStorageBuffersPerShaderStage: number;
14998+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
14999+
readonly maxStorageTexturesPerShaderStage: number;
15000+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15001+
readonly maxTextureArrayLayers: number;
15002+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15003+
readonly maxTextureDimension1D: number;
15004+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15005+
readonly maxTextureDimension2D: number;
15006+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15007+
readonly maxTextureDimension3D: number;
15008+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15009+
readonly maxUniformBufferBindingSize: number;
15010+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15011+
readonly maxUniformBuffersPerShaderStage: number;
15012+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15013+
readonly maxVertexAttributes: number;
15014+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15015+
readonly maxVertexBufferArrayStride: number;
15016+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15017+
readonly maxVertexBuffers: number;
15018+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15019+
readonly minStorageBufferOffsetAlignment: number;
15020+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
15021+
readonly minUniformBufferOffsetAlignment: number;
15022+
}
15023+
15024+
declare var GPUSupportedLimits: {
15025+
prototype: GPUSupportedLimits;
15026+
new(): GPUSupportedLimits;
15027+
};
15028+
1495315029
/**
1495415030
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
1495515031
* Available only in secure contexts.

baselines/serviceworker.generated.d.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4427,6 +4427,82 @@ declare var GPUSupportedFeatures: {
44274427
new(): GPUSupportedFeatures;
44284428
};
44294429

4430+
/**
4431+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4432+
* Available only in secure contexts.
4433+
*
4434+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4435+
*/
4436+
interface GPUSupportedLimits {
4437+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4438+
readonly maxBindGroups: number;
4439+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4440+
readonly maxBindGroupsPlusVertexBuffers: number;
4441+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4442+
readonly maxBindingsPerBindGroup: number;
4443+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4444+
readonly maxBufferSize: number;
4445+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4446+
readonly maxColorAttachmentBytesPerSample: number;
4447+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4448+
readonly maxColorAttachments: number;
4449+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4450+
readonly maxComputeInvocationsPerWorkgroup: number;
4451+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4452+
readonly maxComputeWorkgroupSizeX: number;
4453+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4454+
readonly maxComputeWorkgroupSizeY: number;
4455+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4456+
readonly maxComputeWorkgroupSizeZ: number;
4457+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4458+
readonly maxComputeWorkgroupStorageSize: number;
4459+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4460+
readonly maxComputeWorkgroupsPerDimension: number;
4461+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4462+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4463+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4464+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4465+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4466+
readonly maxInterStageShaderVariables: number;
4467+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4468+
readonly maxSampledTexturesPerShaderStage: number;
4469+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4470+
readonly maxSamplersPerShaderStage: number;
4471+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4472+
readonly maxStorageBufferBindingSize: number;
4473+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4474+
readonly maxStorageBuffersPerShaderStage: number;
4475+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4476+
readonly maxStorageTexturesPerShaderStage: number;
4477+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4478+
readonly maxTextureArrayLayers: number;
4479+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4480+
readonly maxTextureDimension1D: number;
4481+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4482+
readonly maxTextureDimension2D: number;
4483+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4484+
readonly maxTextureDimension3D: number;
4485+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4486+
readonly maxUniformBufferBindingSize: number;
4487+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4488+
readonly maxUniformBuffersPerShaderStage: number;
4489+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4490+
readonly maxVertexAttributes: number;
4491+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4492+
readonly maxVertexBufferArrayStride: number;
4493+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4494+
readonly maxVertexBuffers: number;
4495+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4496+
readonly minStorageBufferOffsetAlignment: number;
4497+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4498+
readonly minUniformBufferOffsetAlignment: number;
4499+
}
4500+
4501+
declare var GPUSupportedLimits: {
4502+
prototype: GPUSupportedLimits;
4503+
new(): GPUSupportedLimits;
4504+
};
4505+
44304506
/**
44314507
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
44324508
* Available only in secure contexts.

baselines/sharedworker.generated.d.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4110,6 +4110,82 @@ declare var GPUSupportedFeatures: {
41104110
new(): GPUSupportedFeatures;
41114111
};
41124112

4113+
/**
4114+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4115+
* Available only in secure contexts.
4116+
*
4117+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4118+
*/
4119+
interface GPUSupportedLimits {
4120+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4121+
readonly maxBindGroups: number;
4122+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4123+
readonly maxBindGroupsPlusVertexBuffers: number;
4124+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4125+
readonly maxBindingsPerBindGroup: number;
4126+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4127+
readonly maxBufferSize: number;
4128+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4129+
readonly maxColorAttachmentBytesPerSample: number;
4130+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4131+
readonly maxColorAttachments: number;
4132+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4133+
readonly maxComputeInvocationsPerWorkgroup: number;
4134+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4135+
readonly maxComputeWorkgroupSizeX: number;
4136+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4137+
readonly maxComputeWorkgroupSizeY: number;
4138+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4139+
readonly maxComputeWorkgroupSizeZ: number;
4140+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4141+
readonly maxComputeWorkgroupStorageSize: number;
4142+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4143+
readonly maxComputeWorkgroupsPerDimension: number;
4144+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4145+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4146+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4147+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4148+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4149+
readonly maxInterStageShaderVariables: number;
4150+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4151+
readonly maxSampledTexturesPerShaderStage: number;
4152+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4153+
readonly maxSamplersPerShaderStage: number;
4154+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4155+
readonly maxStorageBufferBindingSize: number;
4156+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4157+
readonly maxStorageBuffersPerShaderStage: number;
4158+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4159+
readonly maxStorageTexturesPerShaderStage: number;
4160+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4161+
readonly maxTextureArrayLayers: number;
4162+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4163+
readonly maxTextureDimension1D: number;
4164+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4165+
readonly maxTextureDimension2D: number;
4166+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4167+
readonly maxTextureDimension3D: number;
4168+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4169+
readonly maxUniformBufferBindingSize: number;
4170+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4171+
readonly maxUniformBuffersPerShaderStage: number;
4172+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4173+
readonly maxVertexAttributes: number;
4174+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4175+
readonly maxVertexBufferArrayStride: number;
4176+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4177+
readonly maxVertexBuffers: number;
4178+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4179+
readonly minStorageBufferOffsetAlignment: number;
4180+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4181+
readonly minUniformBufferOffsetAlignment: number;
4182+
}
4183+
4184+
declare var GPUSupportedLimits: {
4185+
prototype: GPUSupportedLimits;
4186+
new(): GPUSupportedLimits;
4187+
};
4188+
41134189
/**
41144190
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
41154191
* Available only in secure contexts.

0 commit comments

Comments
 (0)