Skip to content

Commit 4c3f2be

Browse files
committed
Apply review comments
1 parent 766d75c commit 4c3f2be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

candle-core/src/metal_backend/device.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

7674
impl std::fmt::Debug for MetalDevice {
7775
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

0 commit comments

Comments
 (0)