From 1e1b6e5b6d4ef445d4c8f1f66d7537a0f6020f37 Mon Sep 17 00:00:00 2001 From: Benjamin Brienen Date: Thu, 7 Nov 2024 19:03:47 +0100 Subject: [PATCH] Make `BinnedRenderPhase` fields for accessing batchable and unbatchable entities public (#16142) # Objective Fixes #16080 ## Solution Make the fields and struct pub as per the suggested solution. ## Testing None --- crates/bevy_render/src/render_phase/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_render/src/render_phase/mod.rs b/crates/bevy_render/src/render_phase/mod.rs index 5f05bf1870..f460a37d04 100644 --- a/crates/bevy_render/src/render_phase/mod.rs +++ b/crates/bevy_render/src/render_phase/mod.rs @@ -101,7 +101,7 @@ where /// /// Each bin corresponds to a single batch set. For unbatchable entities, /// prefer `unbatchable_values` instead. - pub(crate) batchable_mesh_values: HashMap>, + pub batchable_mesh_values: HashMap>, /// A list of `BinKey`s for unbatchable items. /// @@ -112,7 +112,7 @@ where /// The unbatchable bins. /// /// Each entity here is rendered in a separate drawcall. - pub(crate) unbatchable_mesh_values: HashMap, + pub unbatchable_mesh_values: HashMap, /// Items in the bin that aren't meshes at all. /// @@ -155,9 +155,9 @@ pub struct BinnedRenderPhaseBatch { } /// Information about the unbatchable entities in a bin. -pub(crate) struct UnbatchableBinnedEntities { +pub struct UnbatchableBinnedEntities { /// The entities. - pub(crate) entities: Vec<(Entity, MainEntity)>, + pub entities: Vec<(Entity, MainEntity)>, /// The GPU array buffer indices of each unbatchable binned entity. pub(crate) buffer_indices: UnbatchableBinnedEntityIndexSet,