nightshade 0.53.0

A cross-platform data-oriented game engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::render::wgpu::WgpuRenderer;

/// Drains the egui frame output stashed on `world.resources.egui` and hands
/// it to the egui pass. Called early in
/// [`render_frame`](super::frame::render_frame), before the graph executes.
pub(super) fn prepare_egui_pass(renderer: &mut WgpuRenderer, world: &mut crate::ecs::world::World) {
    let Some((output, primitives)) = world.resources.egui.frame_output.take() else {
        return;
    };
    crate::render::wgpu::pass_sync::prepare_egui_pass(
        renderer,
        &output.textures_delta,
        output.pixels_per_point,
        primitives,
    );
}