mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
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:
parent
011f71a245
commit
e69e28fe74
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue