Module settings

Source

Structs§

Backends
Represents the backends that wgpu will use.
InstanceFlags
Instance debugging flags.
WgpuFeatures
Features that are not guaranteed to be supported.
WgpuLimits
Represents the sets of limits an adapter/device supports.
WgpuSettings
Provides configuration for renderer initialization. Use RenderDevice::features, RenderDevice::limits, and the RenderAdapterInfo resource to get runtime information about the actual adapter, backend, features, and limits. NOTE: Backends::DX12, Backends::METAL, and Backends::VULKAN are enabled by default for non-web and the best choice is automatically selected. Web using the webgl feature uses Backends::GL. NOTE: If you want to use Backends::GL in a native app on Windows and/or macOS, you must use ANGLE. This is because wgpu requires EGL to create a GL context without a window and only ANGLE supports that.

Enums§

Dx12Compiler
Selects which DX12 shader compiler to use.
Gles3MinorVersion
Selects which OpenGL ES 3 minor version to request.
MemoryHints
Hints to the device about the memory allocation strategy.
PowerPreference
Power Preference when choosing a physical adapter.
RenderCreation
An enum describing how the renderer will initialize resources. This is used when creating the RenderPlugin.
WgpuSettingsPriority
Configures the priority used when automatically configuring the features/limits of wgpu.

Functions§

settings_priority_from_env
Get a features/limits priority from the environment variable WGPU_SETTINGS_PRIO