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:
parent
4f1bc8e2b8
commit
f32c836cbe
@ -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>>,
|
mut material_instances: ResMut<RenderMaterialInstances<M>>,
|
||||||
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial3d<M>)>>,
|
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial3d<M>)>>,
|
||||||
) {
|
) {
|
||||||
|
@ -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>>,
|
mut material_instances: ResMut<RenderMaterial2dInstances<M>>,
|
||||||
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial2d<M>), With<Mesh2d>>>,
|
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial2d<M>), With<Mesh2d>>>,
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user