MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ VolumeGridBuffer() [2/3]

MayaFlux::Buffers::VolumeGridBuffer::VolumeGridBuffer ( Kinesis::Lattice3D  lattice,
std::vector< FieldDecl fields,
std::optional< SurfaceConfig surface = std::nullopt 
)

Construct from a runtime-built field list.

Parameters
latticeDiscretized extent every field is stored over.
fieldsField declarations.
surfaceOptional isosurface extraction parameters.

Definition at line 32 of file VolumeGridBuffer.cpp.

37 , m_lattice(lattice)
38 , m_surface(std::move(surface))
39{
41 allocate_fields(fields);
42}
void force_internal_usage(bool internal) override
Set whether this buffer is for internal engine usage.
Definition VKBuffer.hpp:518
std::optional< SurfaceConfig > m_surface
static size_t surface_storage_bytes(const std::optional< SurfaceConfig > &surface)
Bytes of vertex storage the extraction resolution requires.
void allocate_fields(const std::vector< FieldDecl > &decls)
Populate m_fields from declarations.
@ VERTICES_3D
3D vertex data (positions, normals, etc.)

References allocate_fields(), and MayaFlux::Buffers::VKBuffer::force_internal_usage().

+ Here is the call graph for this function: