Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct refit_acceleration_structure destination parameter #326

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

FlannyH
Copy link
Contributor

@FlannyH FlannyH commented Jun 11, 2024

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.

Copy link
Collaborator

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@grovesNL grovesNL merged commit 2b72402 into gfx-rs:master Jun 11, 2024
2 checks passed
@MarijnS95 MarijnS95 deleted the correct-refit-params branch June 11, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants