Structs§
- Backends
- Represents the backends that wgpu will use.
- Instance
Flags - Instance debugging flags.
- Render
Resources - Wgpu
Features - Features that are not guaranteed to be supported.
- Wgpu
Limits - Represents the sets of limits an adapter/device supports.
- Wgpu
Settings - Provides configuration for renderer initialization. Use
RenderDevice::features,RenderDevice::limits, and theRenderAdapterInforesource to get runtime information about the actual adapter, backend, features, and limits. NOTE:Backends::DX12,Backends::METAL, andBackends::VULKANare enabled by default for non-web and the best choice is automatically selected. Web using thewebglfeature usesBackends::GL. NOTE: If you want to useBackends::GLin a native app onWindowsand/ormacOS, you must useANGLEand enable theglesfeature. This is because wgpu requires EGL to create a GL context without a window and only ANGLE supports that.
Enums§
- Dx12
Compiler - Selects which DX12 shader compiler to use.
- Gles3
Minor Version - Selects which OpenGL ES 3 minor version to request.
- Memory
Hints - Hints to the device about the memory allocation strategy.
- Power
Preference - Power Preference when choosing a physical adapter.
- Render
Creation - An enum describing how the renderer will initialize resources. This is used when creating the
RenderPlugin. - Wgpu
Settings Priority - 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