Structs
- Represents the backends that wgpu will use.
- Instance debugging flags.
- Features that are not guaranteed to be supported.
- Represents the sets of limits an adapter/device supports.
- Provides configuration for renderer initialization. Use
RenderDevice::features
,RenderDevice::limits
, and theRenderAdapterInfo
resource to get runtime information about the actual adapter, backend, features, and limits. NOTE:Backends::DX12
,Backends::METAL
, andBackends::VULKAN
are enabled by default for non-web and the best choice is automatically selected. Web using thewebgl
feature usesBackends::GL
. NOTE: If you want to useBackends::GL
in a native app onWindows
and/ormacOS
, you must useANGLE
. This is because wgpu requires EGL to create a GL context without a window and only ANGLE supports that.
Enums
- Selects which DX12 shader compiler to use.
- Selects which OpenGL ES 3 minor version to request.
- Power Preference when choosing a physical adapter.
- An enum describing how the renderer will initialize resources. This is used when creating the
RenderPlugin
. - Configures the priority used when automatically configuring the features/limits of
wgpu
.
Functions
- Get a features/limits priority from the environment variable
WGPU_SETTINGS_PRIO