Make the fields of the Material2dKey public (#5212)
# Objective Make it easier to create pipelines derived from the `Material2dPipeline`. Currently this is made difficult because the fields of `Material2dKey` are private. ## Solution Make the fields public.
This commit is contained in:
parent
61e5bfb2ed
commit
aa0cd7c7dc
@ -216,8 +216,8 @@ pub struct Material2dPipeline<M: SpecializedMaterial2d> {
|
|||||||
|
|
||||||
#[derive(Eq, PartialEq, Clone, Hash)]
|
#[derive(Eq, PartialEq, Clone, Hash)]
|
||||||
pub struct Material2dKey<T> {
|
pub struct Material2dKey<T> {
|
||||||
mesh_key: Mesh2dPipelineKey,
|
pub mesh_key: Mesh2dPipelineKey,
|
||||||
material_key: T,
|
pub material_key: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<M: SpecializedMaterial2d> SpecializedMeshPipeline for Material2dPipeline<M> {
|
impl<M: SpecializedMaterial2d> SpecializedMeshPipeline for Material2dPipeline<M> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user