pygfx.renderers.wgpu.enable_wgpu_features
- pygfx.renderers.wgpu.enable_wgpu_features(*features)
Enable specific features (as strings) on the wgpu device.
WARNING: enabling features means that your code may not work on all devices. The point of wgpu is that it can make a promise that a visualization works and looks the same on any device. Using features breaks that promise, and may cause your code to not work on e.g. mobile devices or certain operating systems.
This function must be called before before the first
Renderer
is created. It can be called multiple times to enable more features.For more information on features:
wgpu.FeatureName
for all possible official features.renderer.device.adapter.features
for the features available on the current system.renderer.device.features
for the currently enabled features.https://gpuweb.github.io/gpuweb/#gpufeaturename for the official webgpu features (excl. native features).
https://docs.rs/wgpu/latest/wgpu/struct.Features.html for the features and their limitations in wgpu-core.