fix shadow pass trace (#12977)

# Objective

- shadow pass trace does not work correctly

## Solution

- enable it.
This commit is contained in:
re0312 2024-04-15 23:55:39 +08:00 committed by GitHub
parent e7ab65675d
commit 09a1f94d14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -15,6 +15,7 @@ trace = [
"bevy_core_pipeline?/trace",
"bevy_ecs/trace",
"bevy_log/trace",
"bevy_pbr?/trace",
"bevy_render?/trace",
"bevy_hierarchy/trace",
"bevy_winit?/trace",

View file

@ -1849,8 +1849,7 @@ impl Node for ShadowPassNode {
let diagnostics = render_context.diagnostic_recorder();
render_context.add_command_buffer_generation_task(move |render_device| {
#[cfg(feature = "trace")]
let _shadow_pass_span = info_span!("shadow_pass").entered();
let _shadow_pass_span = info_span!("", "{}", view_light.pass_name).entered();
let mut command_encoder =
render_device.create_command_encoder(&CommandEncoderDescriptor {
label: Some("shadow_pass_command_encoder"),