File tree Expand file tree Collapse file tree 2 files changed +28
-29
lines changed
Expand file tree Collapse file tree 2 files changed +28
-29
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ impl Device {
263263 blit_encoder. synchronizeResource ( buffer. as_ref ( ) ) ;
264264 blit_encoder. endEncoding ( ) ;
265265 command_buffer. commit ( ) ;
266- unsafe { command_buffer. waitUntilCompleted ( ) } ;
266+ command_buffer. waitUntilCompleted ( ) ;
267267 }
268268 Ok ( ( ) )
269269 }
@@ -277,9 +277,8 @@ impl Device {
277277 autoreleasepool ( |_| {
278278 let mut result = HashMap :: new ( ) ;
279279 let source = include_bytes ! ( "shaders/correlation.metallib" ) ;
280- let library = unsafe {
281- device. newLibraryWithData_error ( & dispatch2:: DispatchData :: from_bytes ( source) ) ?
282- } ;
280+ let library =
281+ device. newLibraryWithData_error ( & dispatch2:: DispatchData :: from_bytes ( source) ) ?;
283282 for module_type in ShaderModuleType :: VALUES {
284283 let function = module_type. load ( & library) ?;
285284 let pipeline = device. newComputePipelineStateWithFunction_error ( & function) ?;
@@ -383,7 +382,7 @@ impl super::Device for Device {
383382 compute_encoder. endEncoding ( ) ;
384383
385384 command_buffer. commit ( ) ;
386- unsafe { command_buffer. waitUntilCompleted ( ) } ;
385+ command_buffer. waitUntilCompleted ( ) ;
387386
388387 Ok ( ( ) )
389388 } )
You can’t perform that action at this time.
0 commit comments