gfx-rs / metal-rs

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

Correct `refit_acceleration_structure` destination parameter #326

Closed FlannyH closed 2 months ago

FlannyH commented 2 months ago

According to the Metal documentation for refitAccelerationStructure, we can pass nil to destinationAccelerationStructure, which will then refit the acceleration structure in-place. This pull request changes the parameter into an Option<_>, so the user can pass None to refit in place.