update example to use winit 0.30 (#105)
* update example to use winit 0.30 * omit unneeded field in example
This commit is contained in:
parent
28512c8630
commit
6b566c5eb1
4 changed files with 222 additions and 162 deletions
|
@ -7,12 +7,7 @@ pub struct State {
|
|||
|
||||
impl State {
|
||||
pub fn new() -> Self {
|
||||
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
|
||||
backends: wgpu::Backends::all(),
|
||||
flags: wgpu::InstanceFlags::empty(),
|
||||
dx12_shader_compiler: wgpu::Dx12Compiler::Fxc,
|
||||
gles_minor_version: wgpu::Gles3MinorVersion::Automatic,
|
||||
});
|
||||
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
|
||||
|
||||
let adapter = block_on(wgpu::util::initialize_adapter_from_env_or_default(
|
||||
&instance, None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue