Skip to content

Commit

Permalink
Add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FlannyH authored and grovesNL committed May 23, 2024
1 parent 4101039 commit 411c4d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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] }
}
Expand All @@ -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_] }
}
Expand Down

0 comments on commit 411c4d3

Please sign in to comment.