File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ impl GfxState {
3838 } ) )
3939 . expect ( "Failed to find an appropriate adapter" ) ;
4040
41- let ( device, queue) = pollster:: block_on ( adapter. request_device (
42- & wgpu:: DeviceDescriptor {
43- label : None ,
44- required_features : wgpu:: Features :: empty ( ) ,
45- required_limits :
46- wgpu:: Limits :: downlevel_webgl2_defaults ( ) . using_resolution ( adapter. limits ( ) ) ,
47- memory_hints : wgpu:: MemoryHints :: Performance ,
48- } ,
49- None ,
50- ) )
41+ let ( device, queue) = pollster:: block_on ( adapter. request_device ( & wgpu:: DeviceDescriptor {
42+ label : None ,
43+ required_features : wgpu:: Features :: empty ( ) ,
44+ required_limits : wgpu:: Limits :: downlevel_webgl2_defaults ( ) . using_resolution ( adapter. limits ( ) ) ,
45+ memory_hints : wgpu:: MemoryHints :: Performance ,
46+ trace : wgpu:: Trace :: Off ,
47+ } ) )
5148 . expect ( "Failed to create device" ) ;
5249
5350 let shader = device. create_shader_module ( wgpu:: ShaderModuleDescriptor {
You can’t perform that action at this time.
0 commit comments