Skip to content
New issue

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

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

Already on GitHub? # to your account

Wrap buffer values in AccelerationStructureBuildGeometryInfo in an Option #2307

Merged
merged 4 commits into from
Aug 26, 2023

Conversation

Rua
Copy link
Contributor

@Rua Rua commented Aug 26, 2023

Fixes #2304.

@marc0246
Copy link
Contributor

The AccelerationStructureBuildGeometryInfo::dst_acceleration_structure field needs to be an Option as well.

@marc0246
Copy link
Contributor

Having BuildAccelerationStructureMode::Build be the default should have been fine or not?

@Rua
Copy link
Contributor Author

Rua commented Aug 26, 2023

It works as a default value, but I was concerned that forcing the user to choose a mode when they may not know the mode yet, would be a problem. I can undo that if you prefer.

@marc0246
Copy link
Contributor

AFAIK you just leave it at build because the field is ignored anyway, and build happens to have 0 value.

@marc0246
Copy link
Contributor

Rather the other way around -- you leave it at 0, which happens to correspond to build.

@marc0246
Copy link
Contributor

Thanks!

@marc0246 marc0246 merged commit c8712dc into vulkano-rs:master Aug 26, 2023
marc0246 added a commit to marc0246/vulkano that referenced this pull request Aug 26, 2023
Rua pushed a commit that referenced this pull request Aug 26, 2023
@Rua Rua deleted the ac-option branch October 25, 2023 14:24
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
…`Option` (vulkano-rs#2307)

* Wrap buffer values in `AccelerationStructureBuildGeometryInfo` in an `Option`

* Oops!

* Also wrap `mode` and `dst_acceleration_structure`

* Un-wrap mode
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AccelerationStructure is impossible to build due to a dependency cycle
2 participants