pygfx.renderers.wgpu.set_wgpu_limits
- pygfx.renderers.wgpu.set_wgpu_limits(**limits)
Set specific limits (as key-value pairs) on the wgpu device.
This is an alias to
wgpu.preconfigure_default_device(.., required_limits=...).WARNING: setting high limits may make your code less portable across devices.
This function must be called before before the first
Rendereris 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.limitsfor the (max) limits available on the current system.renderer.device.limitsfor the currently set limits.https://gpuweb.github.io/gpuweb/#limits for the official webgpu limits.