@@ -29,12 +29,13 @@ use crate::{
2929 Flush ,
3030 error:: { ProcessingError , Result } ,
3131 image:: { Image , bytes_to_pixels, create_readback_buffer, pixel_size, pixels_to_bytes} ,
32- render:: { RenderState , command:: DrawCommand } ,
32+ render:: {
33+ RenderState ,
34+ command:: { CommandBuffer , DrawCommand } ,
35+ } ,
3336 surface:: Surface ,
3437} ;
3538
36- use processing_utils:: CommandBuffer ;
37-
3839pub struct GraphicsPlugin ;
3940
4041impl Plugin for GraphicsPlugin {
@@ -241,7 +242,7 @@ pub fn create(
241242 } ) ,
242243 Transform :: from_xyz ( 0.0 , 0.0 , 999.9 ) ,
243244 render_layer,
244- CommandBuffer :: < DrawCommand > :: new ( ) ,
245+ CommandBuffer :: new ( ) ,
245246 RenderState :: default ( ) ,
246247 SurfaceSize ( width, height) ,
247248 Graphics {
@@ -471,7 +472,7 @@ pub fn end_draw(app: &mut App, entity: Entity) -> Result<()> {
471472
472473pub fn record_command (
473474 In ( ( graphics_entity, cmd) ) : In < ( Entity , DrawCommand ) > ,
474- mut graphics_query : Query < & mut CommandBuffer < DrawCommand > > ,
475+ mut graphics_query : Query < & mut CommandBuffer > ,
475476) -> Result < ( ) > {
476477 let mut command_buffer = graphics_query
477478 . get_mut ( graphics_entity)
0 commit comments