Alias Limits
Represents the sets of limits an adapter/device supports.
alias Limits
= __C .WGPULimits;
Provided are two sets of defaults:
defaultLimits
: Set of limits that is guaranteed to work on all modern backends and is guaranteed to be supported by WebGPU.downlevelDefaultLimits
: Set of limits that are guaranteed to be compatible with GLES3, WebGL, and D3D11.
Remarks
Limits "better" than the default must be supported by the adapter and requested when requesting a device. If limits "better" than the adapter supports are requested, requesting a device will panic. Once a device is requested, you may only use resources up to the limits requested even if the adapter supports "better" limits.
Requesting limits that are "better" than you need may cause performance to decrease because the implementation needs to support more than is needed. You should ideally only request exactly what you need.