Skip to content

Commit

Permalink
Add set_bounding_box_stride and set_bounding_box_buffer_offset to…
Browse files Browse the repository at this point in the history
… `AccelerationStructureBoundingBoxGeometryDescriptor``
  • Loading branch information
FlannyH authored and grovesNL committed May 23, 2024
1 parent 8e92adc commit df7e071
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/accelerator_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,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 {}
Expand Down

0 comments on commit df7e071

Please sign in to comment.