Fix include
This commit is contained in:
parent
898783ca80
commit
94b59568b1
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
use cgmath::prelude::*;
|
use cgmath::prelude::*;
|
||||||
|
|
||||||
|
#[cfg(not(target_arch="wasm32"))]
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use wgpu::{util::DeviceExt, Queue};
|
use wgpu::{util::DeviceExt, Queue};
|
||||||
use winit::event::{DeviceEvent, ElementState, Event, KeyboardInput, MouseButton, WindowEvent};
|
use winit::event::{DeviceEvent, ElementState, Event, KeyboardInput, MouseButton, WindowEvent};
|
||||||
|
@ -122,8 +124,7 @@ impl super::State for DefaultState {
|
||||||
&renderer.device,
|
&renderer.device,
|
||||||
&renderer.queue,
|
&renderer.queue,
|
||||||
global_bind_layout.get_texture_bind_layout(),
|
global_bind_layout.get_texture_bind_layout(),
|
||||||
))
|
)).unwrap();
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let light_uniform = LightUniform {
|
let light_uniform = LightUniform {
|
||||||
position: [2.0, 2.0, 2.0],
|
position: [2.0, 2.0, 2.0],
|
||||||
|
|
Loading…
Reference in a new issue