pygfx.renderers.wgpu.set_wgpu_limits

pygfx.renderers.wgpu.set_wgpu_limits(**limits)

Set specific limits (as key-value pairs) on the wgpu device.

WARNING: setting high limits may make your code less portable across devices.

This function must be called before before the first Renderer is created. It can be called multiple times to override or enable more limits. Note that limit names are invariant to use of dashes versus underscores.

For more information on limits:

  • renderer.device.adapter.limits for the (max) limits available on the current system.

  • renderer.device.limits for the currently set limits.

  • https://gpuweb.github.io/gpuweb/#limits for the official webgpu limits.