gfx-rs / metal-rs

Rust bindings for Metal
Apache License 2.0
567 stars 112 forks source link

Implement indirect instance acceleration structure #314

Closed FlannyH closed 4 months ago

FlannyH commented 4 months ago

Implements the MTLIndirectAccelerationStructureInstanceDescriptor struct, the MTLIndirectInstanceAccelerationStructureDescriptor struct with all its setter functions. Also implements fetching an acceleration structure's GPU resource id, since we need that to fill in the MTLIndirectAccelerationStructureInstanceDescriptor