@@ -202,7 +202,7 @@ where
202202 M : Material ,
203203{
204204 /// Creates or recreates any bind groups that were modified this frame.
205- pub ( crate ) fn prepare_bind_groups (
205+ pub fn prepare_bind_groups (
206206 & mut self ,
207207 render_device : & RenderDevice ,
208208 fallback_image : & FallbackImage ,
@@ -221,12 +221,12 @@ where
221221
222222 /// Returns the bind group with the given index, if it exists.
223223 #[ inline]
224- pub ( crate ) fn get ( & self , index : MaterialBindGroupIndex ) -> Option < & MaterialBindGroup < M > > {
224+ pub fn get ( & self , index : MaterialBindGroupIndex ) -> Option < & MaterialBindGroup < M > > {
225225 self . bind_groups . get ( index. 0 as usize )
226226 }
227227
228228 /// Allocates a new binding slot and returns its ID.
229- pub ( crate ) fn allocate ( & mut self ) -> MaterialBindingId {
229+ pub fn allocate ( & mut self ) -> MaterialBindingId {
230230 let group_index = self . free_bind_groups . pop ( ) . unwrap_or_else ( || {
231231 let group_index = self . bind_groups . len ( ) as u32 ;
232232 self . bind_groups
@@ -249,7 +249,7 @@ where
249249
250250 /// Assigns an unprepared bind group to the group and slot specified in the
251251 /// [`MaterialBindingId`].
252- pub ( crate ) fn init (
252+ pub fn init (
253253 & mut self ,
254254 render_device : & RenderDevice ,
255255 material_binding_id : MaterialBindingId ,
@@ -268,7 +268,7 @@ where
268268 /// This is only a meaningful operation for non-bindless bind groups. It's
269269 /// rarely used, but see the `texture_binding_array` example for an example
270270 /// demonstrating how this feature might see use in practice.
271- pub ( crate ) fn init_custom (
271+ pub fn init_custom (
272272 & mut self ,
273273 material_binding_id : MaterialBindingId ,
274274 bind_group : BindGroup ,
@@ -279,7 +279,7 @@ where
279279 }
280280
281281 /// Marks the slot corresponding to the given [`MaterialBindingId`] as free.
282- pub ( crate ) fn free ( & mut self , material_binding_id : MaterialBindingId ) {
282+ pub fn free ( & mut self , material_binding_id : MaterialBindingId ) {
283283 let bind_group = & mut self . bind_groups [ material_binding_id. group . 0 as usize ] ;
284284 let was_full = bind_group. is_full ( ) ;
285285
0 commit comments