Expand description
§Useful Environment Variables
Both bevy_render and wgpu have a number of environment variable options for changing the runtime behavior
of both crates. Many of these may be useful in development or release environments.
WGPU_DEBUG=1enables debug labels, which can be useful in release builds.WGPU_VALIDATION=0disables validation layers. This can help with particularly spammy errors.WGPU_FORCE_FALLBACK_ADAPTER=1attempts to force software rendering. This typically matches what is used in CI.WGPU_ADAPTER_NAMEallows selecting a specific adapter by name.WGPU_SETTINGS_PRIO=webgl2uses webgl2 limits.WGPU_SETTINGS_PRIO=webgpuuses webgpu limits.VERBOSE_SHADER_ERROR=1prints more detailed information about WGSL compilation errors, such as shader defs and shader entrypoint.
Re-exports§
pub use extract_plugin::ExtractSchedule;pub use extract_plugin::MainWorld;
Modules§
- batching
- camera
- diagnostic
- Infrastructure for recording render diagnostics.
- erased_
render_ asset - error_
handler - extract_
component - extract_
instances - Convenience logic for turning components from the main world into extracted instances in the render world.
- extract_
plugin - extract_
resource - globals
- gpu_
component_ array_ buffer - gpu_
readback - mesh
- occlusion_
culling - GPU occlusion culling.
- pipelined_
rendering - prelude
- The render prelude.
- render_
asset - render_
phase - The modular rendering abstraction responsible for queuing, preparing, sorting and drawing entities as part of separate render phases.
- render_
resource - renderer
- settings
- slab_
allocator - A general-purpose allocator that manages a set of GPU buffer slabs.
- storage
- sync_
component - sync_
world - texture
- uniform
- view
Macros§
- impl_
atomic_ pod - A macro that generates a blob type that allows a POD type to be updated in shared memory.
Structs§
- Extract
- A helper for accessing
MainWorldcontent using a system parameter. - Render
- The main render schedule.
- Render
App - A label for the rendering sub-app.
- Render
Debug Flags - Debugging flags that can optionally be set when constructing the renderer.
- Render
Plugin - Contains the default Bevy rendering backend based on wgpu.
- Render
Schedule Order - Defines the schedules to be run for the rendering, including their order.
- Render
Startup - The startup schedule of the
RenderApp. This can potentially run multiple times, and not on a fresh render world. Every time a newRenderDeviceis acquired, this schedule runs to initialize any gpu resources needed for rendering on it.
Enums§
- Render
Systems - The systems sets of the default
Apprendering schedule.
Traits§
- GpuResource
AppExt - Convenience methods for render-recovery-aware resource initialization.
Functions§
- get_
adreno_ model - If the
RenderAdapterInfois a Qualcomm Adreno, returns its model number. - get_
mali_ driver_ version - Get the Mali driver version if the adapter is a Mali GPU.
- get_
pixel10_ driver_ version - init_
gpu_ resource - Constructs a
Tresource withfrom_worldand inserts it. - storage_
buffers_ are_ unsupported - Returns true if storage buffers are unsupported on this platform or false if they are supported.