bevy_render::renderer

Function initialize_renderer

Source
pub async fn initialize_renderer(
    instance: &Instance,
    options: &WgpuSettings,
    request_adapter_options: &RequestAdapterOptions<'_, '_>,
) -> (RenderDevice, RenderQueue, RenderAdapterInfo, RenderAdapter)
Expand description

Initializes the renderer by retrieving and preparing the GPU instance, device and queue for the specified backend.