Make extract_mesh_materials and MaterialBindGroupAllocator public (#16982)

Fixes #16730

Make the relevant functions public. (`MaterialBindGroupAllocator` itself
was already `pub`)
This commit is contained in:
Benjamin Brienen 2024-12-30 00:57:11 -05:00 committed by François Mockers
parent 4f1bc8e2b8
commit f32c836cbe
2 changed files with 2 additions and 2 deletions

View File

@ -547,7 +547,7 @@ pub const fn screen_space_specular_transmission_pipeline_key(
}
}
fn extract_mesh_materials<M: Material>(
pub fn extract_mesh_materials<M: Material>(
mut material_instances: ResMut<RenderMaterialInstances<M>>,
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial3d<M>)>>,
) {

View File

@ -278,7 +278,7 @@ impl<M: Material2d> Default for RenderMaterial2dInstances<M> {
}
}
fn extract_mesh_materials_2d<M: Material2d>(
pub fn extract_mesh_materials_2d<M: Material2d>(
mut material_instances: ResMut<RenderMaterial2dInstances<M>>,
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial2d<M>), With<Mesh2d>>>,
) {