File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,11 @@ impl RenderContext {
32
32
pub fn new ( ) -> Self {
33
33
let backends = wgpu:: Backends :: from_env ( ) . unwrap_or_default ( ) ;
34
34
let flags = wgpu:: InstanceFlags :: from_build_config ( ) . with_env ( ) ;
35
- let dx12_shader_compiler = wgpu:: Dx12Compiler :: from_env ( ) . unwrap_or_default ( ) ;
36
- let gles_minor_version = wgpu:: Gles3MinorVersion :: from_env ( ) . unwrap_or_default ( ) ;
37
-
35
+ let backend_options = wgpu:: BackendOptions :: from_env_or_default ( ) ;
38
36
let instance = Instance :: new ( & wgpu:: InstanceDescriptor {
39
37
backends,
40
38
flags,
41
- backend_options : wgpu:: BackendOptions {
42
- dx12 : wgpu:: Dx12BackendOptions {
43
- shader_compiler : dx12_shader_compiler,
44
- } ,
45
- gl : wgpu:: GlBackendOptions { gles_minor_version } ,
46
- } ,
39
+ backend_options,
47
40
} ) ;
48
41
Self {
49
42
instance,
You can’t perform that action at this time.
0 commit comments