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

◆ ComputeMeshBuffer() [1/2]

MayaFlux::Buffers::ComputeMeshBuffer::ComputeMeshBuffer ( Kinesis::SpatialField  field,
const glm::vec3 &  bounds_min,
const glm::vec3 &  bounds_max,
uint32_t  res_x,
uint32_t  res_y,
uint32_t  res_z,
float  iso_level = 0.0F 
)
Parameters
fieldSpatialField evaluated on CPU each dirty frame.
bounds_minWorld-space minimum corner.
bounds_maxWorld-space maximum corner.
res_xCell count along X (minimum 1).
res_yCell count along Y (minimum 1).
res_zCell count along Z (minimum 1).
iso_levelIsosurface threshold (default 0.0).

Definition at line 17 of file ComputeMeshBuffer.cpp.

25 : VKBuffer(
26 worst_case_bytes(res_x, res_y, res_z),
29 , m_res_x(std::max(res_x, 1U))
30 , m_res_y(std::max(res_y, 1U))
31 , m_res_z(std::max(res_z, 1U))
32 , m_field(std::move(field))
33 , m_bounds_min(bounds_min)
34 , m_bounds_max(bounds_max)
35 , m_iso_level(iso_level)
36{
38 "ComputeMeshBuffer: {}x{}x{} grid, {:.1f} MB worst-case",
40 static_cast<float>(get_size_bytes()) / (1024.F * 1024.F));
41}
#define MF_INFO(comp, ctx,...)
static size_t worst_case_bytes(uint32_t res_x, uint32_t res_y, uint32_t res_z) noexcept
vk::DeviceSize get_size_bytes() const
Definition VKBuffer.hpp:279
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::Buffers, MayaFlux::Buffers::VKBuffer::get_size_bytes(), MayaFlux::Journal::Init, m_res_x, m_res_y, m_res_z, and MF_INFO.

+ Here is the call graph for this function: