From 77dd20305a51040add2f64ac4e3fa1d576cf7fb6 Mon Sep 17 00:00:00 2001 From: Lily Haverlag Date: Mon, 18 Dec 2023 17:04:19 +0100 Subject: [PATCH] Add `set_bounding_box_stride` and `set_bounding_box_buffer_offset` to `AccelerationStructureBoundingBoxGeometryDescriptor`` --- src/accelerator_structure.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/accelerator_structure.rs b/src/accelerator_structure.rs index 5c8ac4d..3eeda66 100644 --- a/src/accelerator_structure.rs +++ b/src/accelerator_structure.rs @@ -204,6 +204,14 @@ impl AccelerationStructureBoundingBoxGeometryDescriptorRef { pub fn set_bounding_box_count(&self, count: NSUInteger) { unsafe { msg_send![self, setBoundingBoxCount: count] } } + + pub fn set_bounding_box_stride(&self, stride: NSUInteger) { + unsafe { msg_send![self, setBoundingBoxStride: stride] } + } + + pub fn set_bounding_box_buffer_offset(&self, offset: NSUInteger) { + unsafe { msg_send![self, setBoundingBoxBufferOffset: offset] } + } } pub enum MTLInstanceAccelerationStructureDescriptor {}