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:
Tethys Svensson 2022-07-05 14:02:00 +00:00
parent 61e5bfb2ed
commit aa0cd7c7dc

View File

@ -216,8 +216,8 @@ pub struct Material2dPipeline<M: SpecializedMaterial2d> {
#[derive(Eq, PartialEq, Clone, Hash)]
pub struct Material2dKey<T> {
mesh_key: Mesh2dPipelineKey,
material_key: T,
pub mesh_key: Mesh2dPipelineKey,
pub material_key: T,
}
impl<M: SpecializedMaterial2d> SpecializedMeshPipeline for Material2dPipeline<M> {