@@ -237,21 +237,21 @@ impl Plugin for RenderPlugin {
237
237
backends,
238
238
dx12_shader_compiler : settings. dx12_shader_compiler . clone ( ) ,
239
239
} ) ;
240
- let surface = primary_window. map ( |wrapper| unsafe {
241
- // SAFETY: Plugins should be set up on the main thread.
242
- let handle = wrapper. get_handle ( ) ;
243
- instance
244
- . create_surface ( & handle)
245
- . expect ( "Failed to create wgpu surface" )
246
- } ) ;
247
-
248
- eprintln ! ( "==> {:?}" , surface. as_ref( ) ) ;
249
- if let Some ( surface) = surface. as_ref ( ) {
250
- eprintln ! ( "===> {:?}" , surface. get_current_texture ( ) ) ;
251
- }
240
+ // let surface = primary_window.map(|wrapper| unsafe {
241
+ // // SAFETY: Plugins should be set up on the main thread.
242
+ // let handle = wrapper.get_handle();
243
+ // instance
244
+ // .create_surface(&handle)
245
+ // .expect("Failed to create wgpu surface")
246
+ // });
247
+
248
+ // eprintln!("==> {:?}", surface.as_ref());
249
+ // if let Some(surface) = surface.as_ref() {
250
+ // eprintln!("===> {:?}", surface.configure(device, config ));
251
+ // }
252
252
let request_adapter_options = wgpu:: RequestAdapterOptions {
253
253
power_preference : settings. power_preference ,
254
- compatible_surface : surface. as_ref ( ) ,
254
+ // compatible_surface: surface.as_ref(),
255
255
..Default :: default ( )
256
256
} ;
257
257
0 commit comments