Skip to main content

Module renderer

Module renderer 

Source

Structs§

CurrentView
The entity corresponding to the current view being rendered.
FlushCommands
A system parameter that can be used to explicitly flush pending command buffers to the render queue. This is typically not necessary, as command buffers are automatically flushed at the end of each render system. However, in some cases it may be useful to flush command buffers earlier.
PendingCommandBuffers
A resource that holds command buffers and encoders that are pending submission to the render queue.
RenderAdapter
The handle to the physical device being used for rendering. See Adapter for more info.
RenderAdapterInfo
The AdapterInfo of the adapter in use by the renderer.
RenderContext
A system parameter that provides access to a command encoder and render device for issuing rendering commands inside any system running beneath the root super::RenderGraph schedule in the super::render_system system.
RenderContextState
A resource that holds the current render context state, including command encoder and command buffers. This is used internally by the RenderContext system parameter. Implements SystemBuffer to flush command buffers at the end of each render system in topological system order.
RenderDevice
This GPU device is responsible for the creation of most rendering and compute resources.
RenderGraph
Schedule label for the root render graph schedule. This schedule runs once per frame in the render_system system and is responsible for driving the entire rendering process.
RenderInstance
The GPU instance is used to initialize the RenderQueue and RenderDevice, as well as to create WindowSurfaces.
RenderQueue
This queue is used to enqueue tasks for the GPU to execute asynchronously.
ViewQuery
A query that fetches components for the entity corresponding to the current view being rendered, as defined by the CurrentView resource, equivalent to query.get(current_view.entity()).
WgpuWrapper
A wrapper to safely make wgpu types Send / Sync on web with atomics enabled.

Enums§

RenderGraphSystems
System sets for the root RenderGraph schedule.

Functions§

initialize_renderer
Initializes the renderer by retrieving and preparing the GPU instance, device and queue for the specified backend.
render_system
The main render system that drives the rendering process. This system runs the RenderGraph schedule, runs any finalization commands like screenshot captures and GPU readbacks, and calls present on swap chains that need to be presented.