File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
candle-core/src/metal_backend Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,9 @@ pub const RESOURCE_OPTIONS: MTLResourceOptions =
6767
6868// Resource options used for `new_private_buffer`. This uses `private` where supported.
6969#[ cfg( target_os = "ios" ) ]
70- pub const PRIVATE_RESOURCE_OPTIONS : MTLResourceOptions =
71- objc2_metal:: MTLResourceOptions ( MTLResourceOptions :: StorageModeShared . bits ( ) ) ;
70+ pub const PRIVATE_RESOURCE_OPTIONS : MTLResourceOptions = MTLResourceOptions :: StorageModeShared ;
7271#[ cfg( not( target_os = "ios" ) ) ]
73- pub const PRIVATE_RESOURCE_OPTIONS : MTLResourceOptions =
74- objc2_metal:: MTLResourceOptions ( MTLResourceOptions :: StorageModePrivate . bits ( ) ) ;
72+ pub const PRIVATE_RESOURCE_OPTIONS : MTLResourceOptions = MTLResourceOptions :: StorageModePrivate ;
7573
7674impl std:: fmt:: Debug for MetalDevice {
7775 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
You can’t perform that action at this time.
0 commit comments