Skip to content

Update nanovdb to version 32.9.0 and refine grid type checks#475

Merged
swahtz merged 2 commits intoopenvdb:mainfrom
swahtz:nano_update_32.9.0
Feb 24, 2026
Merged

Update nanovdb to version 32.9.0 and refine grid type checks#475
swahtz merged 2 commits intoopenvdb:mainfrom
swahtz:nano_update_32.9.0

Conversation

@swahtz
Copy link
Contributor

@swahtz swahtz commented Feb 24, 2026

We hadn't updated the NanoVDB commit since September, this updates the NanoVDB commit and makes the appropriate changes for the removal of IndexMask and OnIndexMask.

  • Updated the nanovdb to 32.9.0 (previously 32.8.0).
  • Refined grid type checks in GridBatchImpl and related functions to only support ValueOnIndex grids, simplifying the validation logic.
  • Removed references to ValueOnIndexMask in documentation and assertions to align with the new grid type restrictions.
  • Cleaned up unused code related to ValueOnIndexMask in ActiveVoxelIterator.h to reduce complexity.

- Updated the nanovdb package to a newer commit (cfba6dff) for improved features and stability.
- Refined grid type checks in `GridBatchImpl` and related functions to only support `ValueOnIndex` grids, simplifying the validation logic.
- Removed references to `ValueOnIndexMask` in documentation and assertions to align with the new grid type restrictions.
- Cleaned up unused code related to `ValueOnIndexMask` in `ActiveVoxelIterator.h` to reduce complexity.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz requested a review from a team as a code owner February 24, 2026 00:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the NanoVDB library from version 32.8.0 to 32.9.0 and removes support for IndexMask and OnIndexMask grid types that have been deprecated in the newer version. The changes simplify the codebase by restricting support to only ValueOnIndex grids.

Changes:

  • Updated NanoVDB commit hash in CMake configuration to version 32.9.0
  • Removed template specialization for ValueOnIndexMask in ActiveVoxelIterator.h
  • Simplified grid type validation and removed mask-related handling throughout the loading and grid batch implementation code

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/cmake/get_nanovdb.cmake Updates the NanoVDB git tag from version 32.8.0 to 32.9.0
src/fvdb/detail/utils/nanovdb/ActiveVoxelIterator.h Removes template specialization for deprecated ValueOnIndexMask type
src/fvdb/detail/io/LoadNanovdb.cpp Removes support for IndexMask and OnIndexMask grid types, simplifies static assertions, removes mutability checks, and updates documentation to reflect ValueOnIndex-only support
src/fvdb/detail/GridBatchImpl.cu Simplifies grid type validation to only accept ValueOnIndex grids

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz enabled auto-merge (squash) February 24, 2026 01:55
@swahtz swahtz merged commit 86ab3fa into openvdb:main Feb 24, 2026
35 checks passed
@swahtz swahtz deleted the nano_update_32.9.0 branch February 24, 2026 02:37
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.

3 participants