examples: cleanup imports

This commit is contained in:
Carter Anderson 2020-07-16 17:20:42 -07:00
parent 1110f9b877
commit 1db77b2435
5 changed files with 19 additions and 14 deletions

View file

@ -1,6 +1,8 @@
use bevy::prelude::*;
use bevy_asset::{HandleId, LoadState};
use bevy_sprite::TextureAtlasBuilder;
use bevy::{
asset::{HandleId, LoadState},
prelude::*,
sprite::TextureAtlasBuilder,
};
fn main() {
App::build()

View file

@ -13,7 +13,6 @@ fn setup(
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
) {
// create a cube and a plane mesh
let cube_handle = meshes.add(Mesh::from(shape::Cube { size: 1.0 }));
let plane_handle = meshes.add(Mesh::from(shape::Plane { size: 10.0 }));

View file

@ -1,7 +1,9 @@
use bevy::prelude::*;
use bevy_render::{
use bevy::{
prelude::*,
render::{
base_render_graph,
pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline},
},
};
fn main() {

View file

@ -1,7 +1,10 @@
use bevy::{prelude::*, render::shader};
use bevy_render::{
use bevy::{
prelude::*,
render::{
base_render_graph,
pipeline::{DynamicBinding, PipelineSpecialization, RenderPipeline},
shader,
},
};
fn main() {

View file

@ -2,7 +2,7 @@ use bevy::{
prelude::*,
render::{
pass::{
LoadOp, PassDescriptor, RenderPassColorAttachmentDescriptor,
LoadOp, Operations, PassDescriptor, RenderPassColorAttachmentDescriptor,
RenderPassDepthStencilAttachmentDescriptor, TextureAttachment,
},
texture::{TextureDescriptor, TextureFormat, TextureUsage},
@ -10,7 +10,6 @@ use bevy::{
},
window::{CreateWindow, WindowId, WindowReference},
};
use bevy_render::pass::Operations;
fn main() {
App::build()