From 411c4d3843c87b3a42ce949be5170c626c180fe0 Mon Sep 17 00:00:00 2001 From: Lily Haverlag Date: Thu, 2 May 2024 10:25:13 +0200 Subject: [PATCH] Add doc comments --- src/device.rs | 1 + src/heap.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/device.rs b/src/device.rs index 720db6a..d61c00d 100644 --- a/src/device.rs +++ b/src/device.rs @@ -2049,6 +2049,7 @@ impl DeviceRef { unsafe { msg_send![self, heapBufferSizeAndAlignWithLength: length options: options] } } + /// Only available on macos(13.0), ios(16.0) pub fn heap_acceleration_structure_size_and_align_with_size( &self, size: NSUInteger, diff --git a/src/heap.rs b/src/heap.rs index 480b58f..e370a35 100644 --- a/src/heap.rs +++ b/src/heap.rs @@ -260,6 +260,7 @@ impl HeapDescriptorRef { unsafe { msg_send![self, hazardTrackingMode] } } + /// Only available on macos(10.15), ios(13.0) pub fn set_hazard_tracking_mode(&self, hazard_tracking_mode: MTLHazardTrackingMode) { unsafe { msg_send![self, setHazardTrackingMode: hazard_tracking_mode] } } @@ -273,7 +274,7 @@ impl HeapDescriptorRef { pub fn heap_type(&self) -> MTLHeapType { unsafe { msg_send![self, type] } } - + /// Only available on macos(10.15), ios(13.0) pub fn set_heap_type(&self, type_: MTLHeapType) { unsafe { msg_send![self, setType: type_] } }