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` (gfx-rs#299)
  • Loading branch information
FlannyH committed May 23, 2024
1 parent 57247ba commit fd09dd5
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 @@ -222,6 +222,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 fd09dd5

Please sign in to comment.