MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::Detail::VDBGridSpec Struct Reference

One grid's worth of input to VDBArchive::add_grid. More...

#include <VDBArchive.hpp>

+ Collaboration diagram for MayaFlux::IO::Detail::VDBGridSpec:

Public Attributes

std::span< const std::byte > background
 
std::span< const glm::ivec3 > coords
 
bool is_vector { false }
 
std::span< const std::pair< std::string, std::string > > metadata
 
std::string_view name
 
std::span< const std::byte > values
 

Detailed Description

One grid's worth of input to VDBArchive::add_grid.

Values are the active cells only, parallel to coords by position: element i of values belongs to coords[i]. Element width is four bytes for a scalar grid and twelve for a vector grid, so values.size() must equal coords.size() times that width.

background is one element's worth of bytes, of the same width, used for every inactive cell and every tile.

metadata entries are written verbatim as string-typed grid metadata. The caller owns those strings and they need only outlive the add_grid call. The grid name is passed separately and does not need repeating here.

Definition at line 23 of file VDBArchive.hpp.


The documentation for this struct was generated from the following file: