Add Default impl for TextureBuilder
This commit is contained in:
		
							parent
							
								
									b848b78e86
								
							
						
					
					
						commit
						ee5308ac23
					
				|  | @ -44,16 +44,14 @@ impl Default for TextureAttributes { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #[derive(Debug)] | #[derive(Debug, Default)] | ||||||
| pub struct TextureBuilder { | pub struct TextureBuilder { | ||||||
|     pub attributes: TextureAttributes, |     pub attributes: TextureAttributes, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| impl TextureBuilder { | impl TextureBuilder { | ||||||
|     pub fn new() -> Self { |     pub fn new() -> Self { | ||||||
|         Self { |         Self::default() | ||||||
|             attributes: Default::default(), |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     #[inline] |     #[inline] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue