Skip to content

Commit

Permalink
Move bevy_render::renderer::diagnostics to bevy_render::diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
LeshaInc committed Jul 21, 2023
1 parent 90830ee commit 5c2d9ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions crates/bevy_render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extern crate core;

pub mod camera;
pub mod color;
pub mod diagnostics;
pub mod extract_component;
mod extract_param;
pub mod extract_resource;
Expand Down
6 changes: 2 additions & 4 deletions crates/bevy_render/src/render_phase/draw_state.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
use crate::{
camera::Viewport,
diagnostics::{Pass, PassKind, WritePipelineStatistics, WriteTimestamp},
prelude::Color,
render_resource::{
BindGroup, BindGroupId, Buffer, BufferId, BufferSlice, RenderPipeline, RenderPipelineId,
ShaderStages,
},
renderer::{
diagnostics::{Pass, PassKind, WritePipelineStatistics, WriteTimestamp},
RenderDevice,
},
renderer::RenderDevice,
};
use bevy_utils::{default, detailed_trace};
use std::ops::Range;
Expand Down
3 changes: 1 addition & 2 deletions crates/bevy_render/src/renderer/graph_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ use std::{borrow::Cow, collections::VecDeque};
use thiserror::Error;

use crate::{
diagnostics::{DiagnosticsRecorder, RenderDiagnosticsMutex},
render_graph::{
Edge, NodeId, NodeRunError, NodeState, RenderGraph, RenderGraphContext, SlotLabel,
SlotType, SlotValue,
},
renderer::{RenderContext, RenderDevice},
};

use super::diagnostics::{DiagnosticsRecorder, RenderDiagnosticsMutex};

pub(crate) struct RenderGraphRunner;

#[derive(Error, Debug)]
Expand Down
4 changes: 1 addition & 3 deletions crates/bevy_render/src/renderer/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod diagnostics;
mod graph_runner;
mod render_device;

Expand All @@ -8,6 +7,7 @@ pub use graph_runner::*;
pub use render_device::*;

use crate::{
diagnostics::{DiagnosticsRecorder, OptionalDiagnosticRecorder},
render_graph::RenderGraph,
render_phase::TrackedRenderPass,
render_resource::RenderPassDescriptor,
Expand All @@ -22,8 +22,6 @@ use wgpu::{
Adapter, AdapterInfo, CommandBuffer, CommandEncoder, Instance, Queue, RequestAdapterOptions,
};

use self::diagnostics::{DiagnosticsRecorder, OptionalDiagnosticRecorder};

/// Updates the [`RenderGraph`] with all of its nodes and then runs it to render the entire frame.
pub fn render_system(world: &mut World) {
world.resource_scope(|world, mut graph: Mut<RenderGraph>| {
Expand Down

0 comments on commit 5c2d9ce

Please sign in to comment.