Alias Limits

Represents the sets of limits an adapter/device supports.

alias Limits = __C.WGPULimits;

Provided are two sets of defaults:

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.

See Also