Skip to content

Commit

Permalink
Implement gpu_resource_id function for AccelerationStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
FlannyH authored and kvark committed May 6, 2024
1 parent 4feb7dc commit ff2e8f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/accelerator_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ foreign_obj_type! {
type ParentType = Resource;
}

impl AccelerationStructureRef {
pub fn gpu_resource_id(&self) -> MTLResourceID {
unsafe { msg_send![self, gpuResourceID] }
}
}

pub enum MTLAccelerationStructureGeometryDescriptor {}

foreign_obj_type! {
Expand Down

0 comments on commit ff2e8f4

Please sign in to comment.