Made Material2dBindGroupId instantiable (#14053)

# Objective / Solution

Make it possible to construct `Material2dBindGroupId` for custom 2D
material pipelines by making the inner field public.

---

The 3D variant (`MaterialBindGroupId`) had this done in
e79b9b62ce
This commit is contained in:
Brian Reavis 2024-06-28 17:41:15 -07:00 committed by GitHub
parent 011f71a245
commit e69e28fe74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -463,7 +463,7 @@ pub fn queue_material2d_meshes<M: Material2d>(
}
#[derive(Component, Clone, Copy, Default, PartialEq, Eq, Deref, DerefMut)]
pub struct Material2dBindGroupId(Option<BindGroupId>);
pub struct Material2dBindGroupId(pub Option<BindGroupId>);
/// Data prepared for a [`Material2d`] instance.
pub struct PreparedMaterial2d<T: Material2d> {