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

◆ VolumeGridBuffer() [3/3]

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

Construct a volume with no fields, to be declared after.

Parameters
latticeDiscretized extent every field is stored over.
surfaceOptional isosurface extraction parameters. Its field name resolves at setup_processors, so it may name a field declared after construction.

Extraction storage is sized here because it depends only on the extraction resolution, so the SurfaceConfig cannot move later.

Definition at line 44 of file VolumeGridBuffer.cpp.

48 , m_lattice(lattice)
49 , m_surface(std::move(surface))
50{
52}
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.
@ VERTICES_3D
3D vertex data (positions, normals, etc.)

References MayaFlux::Buffers::VKBuffer::force_internal_usage().

+ Here is the call graph for this function: