File tree Expand file tree Collapse file tree 4 files changed +201
-121
lines changed
pipelined/bevy_sprite2/src Expand file tree Collapse file tree 4 files changed +201
-121
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ pub struct SlabKey<V> {
11
11
marker : PhantomData < V > ,
12
12
}
13
13
14
+ impl < V > PartialEq < SlabKey < V > > for SlabKey < V > {
15
+ fn eq ( & self , other : & SlabKey < V > ) -> bool {
16
+ self . index == other. index
17
+ }
18
+ }
19
+
20
+ impl < V > Eq for SlabKey < V > { }
21
+
14
22
impl < V > Copy for SlabKey < V > { }
15
23
16
24
impl < V > Clone for SlabKey < V > {
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ impl Plugin for SpritePlugin {
34
34
. add_system_to_stage ( RenderStage :: Prepare , render:: prepare_sprites)
35
35
. add_system_to_stage ( RenderStage :: Queue , queue_sprites)
36
36
. init_resource :: < SpriteShaders > ( )
37
- . init_resource :: < SpriteMeta > ( ) ;
37
+ . init_resource :: < SpriteMeta > ( )
38
+ . init_resource :: < ExtractedSprites > ( ) ;
38
39
let draw_sprite = DrawSprite :: new ( & mut render_app. world ) ;
39
40
render_app
40
41
. world
You can’t perform that action at this time.
0 commit comments