Skip to content

Commit ec70a0f

Browse files
authored
Delete unused weak handle and remove duplicate loads. (#18635)
# Objective - Cleanup ## Solution - Remove completely unused weak_handle (`MESH_PREPROCESS_TYPES_SHADER_HANDLE`). This value is not used directly, and is never populated. - Delete multiple loads of `BUILD_INDIRECT_PARAMS_SHADER_HANDLE`. We load it three times right after one another. This looks to be a copy-paste error. ## Testing - None.
1 parent d09f958 commit ec70a0f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

crates/bevy_pbr/src/render/gpu_preprocess.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ use super::{ShadowView, ViewLightEntities};
6666
/// The handle to the `mesh_preprocess.wgsl` compute shader.
6767
pub const MESH_PREPROCESS_SHADER_HANDLE: Handle<Shader> =
6868
weak_handle!("c8579292-cf92-43b5-9c5a-ec5bd4e44d12");
69-
/// The handle to the `mesh_preprocess_types.wgsl` compute shader.
70-
pub const MESH_PREPROCESS_TYPES_SHADER_HANDLE: Handle<Shader> =
71-
weak_handle!("06f797ef-a106-4098-9a2e-20a73aa182e2");
7269
/// The handle to the `reset_indirect_batch_sets.wgsl` compute shader.
7370
pub const RESET_INDIRECT_BATCH_SETS_SHADER_HANDLE: Handle<Shader> =
7471
weak_handle!("045fb176-58e2-4e76-b241-7688d761bb23");
@@ -452,18 +449,6 @@ impl Plugin for GpuMeshPreprocessPlugin {
452449
"build_indirect_params.wgsl",
453450
Shader::from_wgsl
454451
);
455-
load_internal_asset!(
456-
app,
457-
BUILD_INDIRECT_PARAMS_SHADER_HANDLE,
458-
"build_indirect_params.wgsl",
459-
Shader::from_wgsl
460-
);
461-
load_internal_asset!(
462-
app,
463-
BUILD_INDIRECT_PARAMS_SHADER_HANDLE,
464-
"build_indirect_params.wgsl",
465-
Shader::from_wgsl
466-
);
467452
}
468453

469454
fn finish(&self, app: &mut App) {

0 commit comments

Comments
 (0)